The document summarizes the anatomy and physiology of acid production in the stomach. It discusses how parietal cells in the gastric glands secrete acid via proton pumps activated by histamine and other factors. Mucosal defenses protect the stomach from acid. Peptic ulcers result from an imbalance between these factors. Common ulcer treatments target proton pumps using proton pump inhibitors or histamine receptors using H2 blockers. The document then provides details on the structure and mechanism of action of proton pumps and how different drug classes inhibit acid secretion.