Nightmares or dreams with explicit, unsettling content, occur most often during REM sleep, when the brain is most prone to vivid dreaming. Because they happen during REM sleep, nightmares often occur later at night or early-morning hours when the brain reaches that part of the sleep cycle.