Esomeprazole reduces the amount of acid your stomach makes. It's widely used to: treat indigestion, heartburn and acid reflux, and gastro-oesophageal reflux disease (GORD) – a condition which means you keep getting acid reflux. prevent stomach ulcers.