This keeps your stomach from producing too much acid, which can be harmful to your digestive system. Too much acid can cause ulcers & reflux into your esophagus, damaging it. There are other meds, so see your dr to find out what is best for you. Avoiding spicy foods
& acid foods can help.
Answer assisted by Nicole Bressler, Medical Student