Treats duodenal ulcer, gastric ulcer, gastroesophageal reflux disease (GERD), and other disorders of the stomach. Also treats or prevents heartburn. This medicine is a histamine H2-blocker.