Peptic ulcers form in the stomach or duodenum due to an imbalance between aggressive factors like acid and pepsin and protective factors like mucus secretion and blood flow. H2 receptor blockers and proton pump inhibitors are commonly used to treat peptic ulcers by reducing acid secretion. This article discusses the pharmacology of peptic ulcers, including the mechanisms of drug therapies used to treat this condition.