Most dreaming occurs during REM (rapid eye movement) sleep, which we cycle through periodically during the night. Sleep studies show our brainwaves are almost as active during REM cycles as they are when we're awake. Experts believe the brainstem generates REM sleep and the forebrain generates dreams.