Cimetidine is a histamine H2 receptor antagonist primarily used to reduce stomach acid production and treat conditions like gastric ulcers and acid reflux. It works by blocking the H2 receptors in the stomach lining, which decreases the release of stomach acid.