It is used for the treatment of duodenal and gastric ulcers and the prevention of their recurrence; the eradication of Helicobacter pylori in combination with appropriate antibiotics; the treatment of NSAID-associated gastric and duodenal ulcers and their prevention in at-risk patients; and the treatment of reflux esophagitis, gastroesophageal reflux disease, and Zollinger–Ellison syndrome.