Smoking can make insomnia worse because it interferes with REM sleep. Nicotine withdrawal also tends to wake a person up in the middle of the night for another cigarette.