Famotidine is a medication that belongs to the class of drugs known as H2 receptor antagonists, primarily used to reduce stomach acid production. It is effective in treating conditions such as peptic ulcers and gastroesophageal reflux disease (GERD) by blocking the action of histamine on H2 receptors in the stomach lining, which in turn decreases gastric acid secretion and promotes healing of the gastrointestinal tract.