Lansoprazole is used for many indications, including: Treatment of an active duodenal ulcer. Stomach germ treatment. Stomach ulcer treatment. Prevention of stomach ulcers caused by taking non-steroidal anti-inflammatory drugs. Reflux treatment. Treating conditions that cause excessive stomach secretions, such as Zollinger-Ellison syndrome. Treatment of erosive esophagitis.