Dreams are caused by your brain becoming highly active during sleep while your body stays still and your senses go offline. Without any real-world input to process, your brain generates its own experiences, pulling from memories, emotions, and essentially random neural signals to create the vivid scenes you experience as dreams. The process involves specific brain chemicals shifting in concentration, particular brain regions lighting up, and a sleep architecture that cycles you through dream-prone states multiple times each night.
What Happens in Your Brain During a Dream
The most vivid dreaming happens during REM (rapid eye movement) sleep, when brain activity looks remarkably similar to brain activity while you’re awake. Your eyes move behind your closed eyelids, your breathing becomes irregular, and your brain is firing intensely. But two critical things are different from waking life: your voluntary muscles are temporarily paralyzed, and the sensory signals from the outside world are largely blocked.
This creates a unique situation. Your brain’s visual and emotional centers are highly active, but they’re not receiving any real input. So they generate their own. A region at the back of the brain, sometimes called the “posterior hot zone,” appears to be the core neural territory responsible for conscious dream experiences. Brain-mapping studies have found that dreaming, in both REM and non-REM sleep, correlates with a specific drop in slow-wave electrical activity in this posterior cortical region. When researchers monitor this zone with EEG, they can actually predict whether a sleeping person is dreaming before waking them to ask.
Meanwhile, the prefrontal cortex, the part of the brain responsible for logic, planning, and self-awareness, is much less active during dreams. This is why dreams feel so real in the moment: the brain region that would normally flag something as bizarre or impossible is essentially turned down. You can fly, talk to someone who died years ago, or find yourself in a building that’s simultaneously your childhood home and your office, and none of it seems strange until you wake up.
The Chemical Shift That Triggers Dreaming
Your brain runs on a carefully balanced cocktail of chemical messengers, and the transition into dreaming involves a dramatic reshuffling of that balance. During waking hours, acetylcholine, norepinephrine, and serotonin are all elevated, keeping you alert and processing the outside world. When you fall into deep non-REM sleep, all three drop to low levels, and brain activity slows significantly.
REM sleep is where things get interesting. Acetylcholine surges back up to near-waking levels, activating the brain’s sensory-processing and thinking regions. But norepinephrine and serotonin stay low. This combination is unique to REM sleep and appears to be the chemical recipe for dreaming: the brain is activated enough to produce rich internal experiences, but without the chemicals that normally anchor you to external reality and logical thought. Your forebrain is excited without any sensory input to work with, so it produces dreams instead.
Electrical signals called PGO waves (originating in the brainstem and traveling to visual processing areas) are thought to trigger the visual content of dreams specifically. These bursts of activity may be why dreams are so dominated by imagery rather than, say, abstract thought or pure sound.
You Also Dream Outside of REM Sleep
Most people associate dreaming exclusively with REM sleep, but dreams happen during other sleep stages too. When researchers wake people from REM sleep, up to 90 percent report they were dreaming. But even in deep non-REM sleep (stage 3), about 50 percent of people report some form of dream experience when woken.
The difference is quality. REM dreams tend to be vivid, narrative, emotionally charged, and strange. Non-REM dreams are typically more fragmented, less visual, and closer to idle thoughts or brief impressions. Your brain cycles through REM and non-REM stages multiple times per night, with REM periods getting longer toward morning. This is why the dreams you remember most clearly tend to be the ones just before you wake up.
Why Your Brain Builds Narratives From Random Signals
One of the most influential explanations for dream content is the activation-synthesis model. The idea is straightforward: during REM sleep, the brainstem sends volleys of essentially random electrical impulses upward into the brain. The cortex, whose job is always to make sense of incoming signals, does exactly what it would do with any input. It tries to weave those signals into a coherent story.
The result is a dream. The bizarre imagery, the sudden scene changes, the emotional intensity that doesn’t match the situation: all of these may be your brain’s best attempt at constructing a narrative from neural noise. It’s not that dreams are meaningless, but their starting material may be random activation rather than purposeful storytelling. Your brain imposes meaning after the fact, the same way it finds faces in clouds.
Dreams Help Process Emotions and Memory
Whether or not the initial spark is random, dreaming appears to serve real psychological functions. Research from UC Irvine’s Sleep and Cognition Lab provided the first direct evidence that dreaming plays an active role in processing emotional memories. In a study of 125 participants, those who reported dreaming after viewing emotionally charged images had better recall of those images the next day but were less emotionally reactive to them. People who didn’t remember dreaming showed no such pattern.
Even more striking, the emotional tone of the dream mattered. The more positive someone’s dream was, the more positively they rated negative images the following day. This suggests dreams don’t just replay difficult experiences. They actively transform your emotional response to them, essentially taking the sting out of upsetting memories overnight. This may be one reason sleep deprivation makes people more emotionally volatile: without adequate dreaming, the emotional processing system never completes its work.
Why You Forget Most Dreams
You dream multiple times every night, but most of those dreams vanish completely. About 70 percent of people can remember at least some dreams, but the level of detail varies enormously from person to person. Several factors influence whether a dream sticks or disappears.
Timing matters most. If you wake up during or immediately after REM sleep, recall is far more likely. The speed of your transition from sleep to waking also plays a role: a gradual, natural awakening preserves more dream memory than a sudden alarm. Acetylcholine, the same chemical that helps generate dreams in the first place, appears to influence recall as well. Researchers have observed that people with higher acetylcholine spikes during REM sleep remember dreams more frequently. Brain structure may even play a part. Studies have found greater density of white matter (the neural wiring that connects brain regions) in people who recall more of their dreams.
The fundamental challenge is that dream memories are inherently fragile. They form in a brain state with reduced activity in the regions responsible for encoding long-term memories. Unless you wake up and actively think about the dream, the memory typically fades within minutes.
External Stimuli Can Shape Dream Content
Your sleeping brain isn’t completely sealed off from the outside world. Sounds, smells, temperature changes, and physical sensations can all filter into a dream and get woven into the narrative. A ringing phone might become a fire alarm in your dream. A cold room might place you in a snowy landscape. Researchers describe a feedback loop between the sleeping body and the dreaming mind, where nearly any sensory stimulus has the potential to influence what you experience during sleep.
This is why environmental factors like a partner snoring, a pet jumping on the bed, or a room that’s too warm can shift dream content in noticeable ways. Your brain is still monitoring the environment at a low level, and it incorporates those signals into whatever story it’s constructing.
Medications and Substances That Alter Dreams
Certain medications can dramatically change how often you dream, how vivid those dreams are, and whether they tip into nightmares. Beta-blockers are the most commonly reported culprit: one study found that roughly a third of people experiencing nightmares were taking a beta-blocker. These drugs may also suppress melatonin production, which disrupts normal sleep architecture.
Antidepressants that affect serotonin levels can suppress REM sleep, which paradoxically makes the REM periods that do occur more intense, leading to unusually vivid or disturbing dreams. Antihistamines (particularly older, sedating types), sleep aids, and even melatonin supplements have all been linked to increased dream vividness or nightmares. Medications that raise dopamine levels, including those used for Parkinson’s disease and ADHD, can also intensify dreaming. Even semaglutide, widely used for diabetes and weight loss, has generated reports of abnormally vivid dreams.
Alcohol and cannabis both suppress REM sleep while they’re active in your system. When you stop using them, REM sleep rebounds aggressively, often producing a temporary flood of unusually intense dreams. This “REM rebound” effect is one reason people quitting either substance frequently report a sudden wave of vivid or unsettling nightmares.

