Histamine is an endogenous substance released by mast cells and basophils that causes physiological and pathological effects. Drugs that inhibit histamine release or block its receptors have therapeutic value for conditions like allergies, ulcers, and anaphylaxis. There are two generations of histamine H1 receptor antagonists - first generation agents are more sedating while second generation have fewer side effects. Histamine H2 receptor antagonists like ranitidine and famotidine reduce stomach acid and are used to treat ulcers and gastroesophageal reflux disease.