Doxylamine is used in the short-term treatment of insomnia (difficulty falling asleep or staying asleep). Doxylamine is also used in combination with decongestants and other medications to relieve sneezing, runny nose, and nasal congestion caused by the common cold. Doxylamine should not be used to cause sleepiness in children. Doxylamine is in a class of medications called