Famotidine, sold under the trade name Pepcid is a histamine H2 receptor antagonist that inhibits stomach acid production. It is commonly used in the treatment of peptic ulcer disease and gastroesophageal reflux disease.