Famotidine is an H2 receptor antagonist used to reduce stomach acid production, primarily to treat conditions like ulcers and gastroesophageal reflux disease (GERD). It helps alleviate heartburn and promote healing of the esophagus.