Except for daydreaming, that happens when you're awake, sleep usually occurs in deeper states of sleep. Most often, it's the REM stage of sleep, which is the fourth sleep stage . Although it's not only limited to that. Dreams can occur in the other stages of sleep, but they're not as likely to be vivid.