Esomeprazole is a medication that is used to treat a number of conditions affecting the esophagus, stomach, and intestines. Esomeprazole is also available over the counter and is indicated for adults who have heartburn two or more days a week. Prescriptiononly esomeprazole is indicated for many acidrelated conditions such as gastroesophageal reflux disease, or GERD, as well as erosive esophagitis, and H. pylori infections. It is also used to prevent stomach ulcers in people taking NSAIDs. Esomeprazole belongs to a group of drugs called proton pump inhibitors. It works by decreasing the amount of acid made in the stomach.This.