PPIs switch off the stomach's acid pumps. Less acid heals ulcers, but it has knock-on effects elsewhere in the body.
PPIs such as omeprazole and lansoprazole work by irreversibly blocking the H⁺/K⁺ ATPase (the proton pump) in the parietal cells of the stomach. Side effects include hyponatraemia and hypomagnesaemia, osteoporosis and fractures, microscopic colitis and a higher risk of C. difficile infection.