Diphenhydramine is an antihistamine medication mainly used to treat allergies. It can also be used for insomnia, symptoms of the common cold, tremor in parkinsonism, and nausea. It is taken by mouth, injected into a vein, injected into a muscle, or applied to the skin.