Theophylline is a bronchodilator drug, given by mouth, that widens the airways to the lung. It also is used to prevent attacks of apnea (cessation of breathing) in premature infants and to treat heart failure because it stimulates heart rate and increases urine excretion.