Ranitidine is a medication that belongs to a class of drugs known as H2 (histamine-2) blockers. It is used to reduce the amount of stomach acid produced by the stomach lining. This can be beneficial for treating conditions like gastroesophageal reflux disease (GERD), peptic ulcers, and Zollinger-Ellison syndrome.