It’s used for indigestion, heartburn, acid reflux and gastroesophageal-reflux-disease (GORD). Lansoprazole is also taken to prevent and treat stomach ulcers. Sometimes, lansoprazole is taken for a rare condition caused by a tumour in the pancreas or gut called Zollinger-Ellison syndrome.