How Diphenhydramine works
Diphenhydramine is a first-generation antihistamine. It blocks histamine H1 receptors in the body and brain, which relieves allergy symptoms and itching and also causes marked drowsiness. That sedation is why it is the active ingredient in many nighttime sleep aids.