Pantoprazole is used to treat gastroesophageal reflux disease (GERD), a condition that causes gastric juices to flow upward from your stomach and into the esophagus. It also treats conditions in which the stomach makes excess acid, such as Zollinger-Ellison syndrome