Generic Nexium or Esomeprazole is used to treat conditions in which there is too much acid in the stomach. It is also used to treat duodenal ulcers and gastroesophageal reflux disease GERD. This is a condition in which the acid in the stomach washes back up into the esophagus. It also reduces the chance of gastric ulcers in patients who use a group of medicines called NSAIDs and who may be at greater risk i.e. patients 60 years of age or older or patients who have a history of gastric ulcers. Sometimes Eomeprazole is used along with antibiotics to treat ulcers associated with infection caused by the H. pylori bacteria germ.