Omeprazole reduces the amount of acid your stomach makes. It’s widely used to treat indigestion and heartburn, and acid reflux. It’s also taken to prevent and treat stomach ulcers. Omeprazole is a type of medicine called a proton pump inhibitor (PPI).