It is used in conditions where inhibition of gastric acid secretion may be beneficial including aspiration syndromes, dyspepsia, erosive esophagitis, gastroesophageal reflux disease (GERD), benign gastric ulcer, duodenal ulcer, and hypersecretory conditions (e.g. Zollinger-Ellison syndrome).