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