Insomnia is very common during pregnancy. Usually, it is caused by hormones and physical changes (like needing to pee all the time!). To treat insomnia, some safe medications include melatonin, Benadryl, and UNISOM. Insomnia will not hurt you or your growing baby, but if you are having trouble with drowsiness impacting your daily life, speak with your doctor.