It is used in the treatment of heartburn, gastroesophageal reflux disease (acid reflux) and peptic ulcer disease.