REM sleep, when most vivid dreaming occurs, is associated with processing emotional memories and integrating new learning with existing knowledge. It is a key part of the night’s cognitive housekeeping.
Alcohol and short sleep cut REM. Full, unbroken nights let this processing happen.