For most of the twentieth century, dreams were treated as scientifically uninteresting, mere byproducts of a sleeping brain with no real function. Thirty years of neuroscience have made that view hard to hold. We can now watch the dreaming brain at work, and what it is doing looks less like noise and more like emotional processing, memory sorting, and rehearsal. What the science still cannot do, and this is worth saying plainly, is agree on why we dream at all.
While you dream, your brain is far from idle. In REM sleep it fires almost as hard as it does awake, replaying the day's feelings, sorting memory, and running you through scenarios, while the reasoning front of the brain goes quiet and its emotional core lights up. What the dreaming brain is doing is clearer than why it does it; on the deepest question, why we dream at all, science still has no settled answer.
REM sleep, the stage where dreams live
Sleep is not a uniform state. Throughout the night, your brain cycles between Non-REM (NREM) sleep and Rapid Eye Movement (REM) sleep in approximately 90-minute cycles. NREM sleep dominates the first half of the night, focused on physical restoration and memory consolidation. REM sleep increases in the second half, and it is during these REM periods that the most vivid, emotionally rich, and narratively complex dreams occur.
During REM sleep, your brain is highly active, in some regions more active than during waking life. The visual cortex fires intensely, creating the vivid imagery of dreams. The amygdala and cingulate cortex, key emotional processing centers, run at elevated levels. Meanwhile, the prefrontal cortex, the brain's center of rational judgment and self-monitoring, goes largely offline. This combination explains why dreams feel so real while you are in them and so strange in retrospect: the emotional brain is fully engaged while the rational brain sleeps.
One caveat keeps this tidy picture honest: dreams are not confined to REM. People woken from non-REM sleep also report dreams, quieter and more thought-like, and some researchers argue that the machinery of dreaming may run independently of REM. The stage shapes the tone of a dream more reliably than it decides whether one happens.
Overnight therapy, emotional processing during sleep
Matthew Walker's research at UC Berkeley has produced one of the most important findings in modern sleep science: REM sleep functions as a form of emotional first aid. During REM, the brain replays emotionally significant experiences from the day, but in a neurochemical environment stripped of noradrenaline (the brain's primary stress chemical). This allows you to process the emotional content of memories while simultaneously reducing their emotional charge.
Walker's model, which he calls 'Sleep to Forget, Sleep to Remember', proposes that REM sleep preserves the informational content of emotional memories while stripping away the raw, visceral feeling attached to them. This is why a problem that felt catastrophic at midnight can feel manageable after a good night's sleep. Your brain has processed the emotion overnight.
REM sleep is not optional. It is an essential biological function that recalibrates our emotional brain circuits, allowing us to work through the social and emotional world with greater skill and accuracy.
Matthew Walker, UC Berkeley
Can dreams solve problems?
Deirdre Barrett, a psychologist at Harvard Medical School, has documented extensive evidence that dreams actively solve problems. Her research shows that when people are given a problem to think about before sleep, a significant percentage report dreams that contain viable solutions, solutions that they could not reach through waking analysis alone.
The mechanism seems to lie in the loosened associative networks of REM sleep. Freed from the constraints of logical, linear thinking, the dreaming brain links ideas that waking logic keeps apart. It is also why a number of scientific and artistic breakthroughs are said to have emerged from dreams, from Kekulé's benzene ring to Paul McCartney's 'Yesterday.' Those particular stories are part anecdote and hard to verify, but the underlying capacity, the sleeping mind making connections the waking one missed, is well documented.
The threat simulation theory
Finnish neuroscientist Antti Revonsuo has proposed one influential answer: that dreams evolved to simulate threatening situations, a virtual reality training ground for survival. His Threat Simulation Theory offers a reason why negative emotions outnumber positive ones in dreams, and why chase dreams, falling dreams, and danger scenarios recur so widely across cultures. It is a hypothesis rather than a settled fact, but a well-argued one.
From this perspective, your recurring nightmare is not a malfunction, it is your brain rehearsing responses to perceived threats, keeping your threat-detection systems sharp. This does not mean the threats are literal; the 'threats' your brain practices against are often social, emotional, and psychological rather than physical.
How dreams help the brain file memory
One of the clearest jobs of sleep is memory. Through the night the brain replays the day, moving fragile new memories into longer-term storage and letting go of what it does not need. Dreams seem to be a surface trace of that sorting. In a much-cited experiment, rats that had run a maze by day showed the same hippocampal cells firing the route again in sleep, as if rehearsing it. Human studies point the same way: sleep after learning improves recall, and people woken from REM often report dreams that echo, in scrambled form, whatever they were just trying to learn. If you would like more of that nightly work to survive into the morning, it comes down to how you wake and write it down.
Which theory of dreaming is right?
| Theory | What it claims | Where it stands |
|---|---|---|
| Memory consolidation | Sleep, and REM in particular, files and strengthens memory; dreams are a trace of that sorting. | Well supported |
| Overnight therapy (Walker) | REM strips the charge from an emotional memory while keeping the information, so yesterday stings a little less. | Good evidence |
| Problem-solving (Barrett) | The loosened, associative dreaming mind can crack problems the waking mind is stuck on. | Some evidence |
| Threat simulation (Revonsuo) | Dreams are a safe rehearsal of danger, an evolved survival drill. | Hypothesis |
| Activation-synthesis (Hobson) | Dreams begin as random signals from the brainstem that the cortex weaves into a story after the fact. | Hypothesis, now softened |
What scientists still argue about
Here is the honest part, the part most dream writing skips. Researchers agree on a great deal about how dreaming works and almost nothing about why it exists. Several serious theories compete, and they do not fully reconcile.
The activation-synthesis view, put forward by Allan Hobson, starts in the brainstem: during REM it fires more or less randomly, and the higher brain weaves those signals into a story after the fact. In its strong form, meaning is something we add, not something the dream carries. The emotional and memory theories, Walker's overnight therapy among them, argue the opposite is at least partly true, that dreaming does real work on feeling and memory. Mark Solms complicated the picture further by showing that dreaming can survive brain damage that abolishes REM, and can disappear with damage to the brain's motivational circuits, which suggests dreaming is driven by what we want and fear, not by REM alone. The continuity view keeps it plain: dreams mostly extend our waking concerns. And threat simulation adds the evolutionary angle above.
These do not cancel each other out so much as describe different floors of the same building. A dream can begin in noisy signals, get shaped by memory and emotion, and still carry a meaning worth reading in the morning. What no one can honestly claim yet is a single, proven reason we dream. Anyone who sells you that certainty is selling. We would rather hold the question open, which is also why we read a dream through several lenses instead of one.
Where neuroscience meets depth psychology
One of the more striking turns in dream science is the convergence between neuroscientific findings and the psychological insights of Jung and his successors. Walker's discovery that REM sleep processes emotions aligns closely with Jung's view that dreams compensate for conscious one-sidedness. Barrett's problem-solving research echoes Jung's observation that dreams offer solutions the waking mind cannot reach. The science does not replace the psychology, it validates and enriches it.
At Somniary, we hold both frameworks at once. The neuroscience tells us that dreams matter, that they serve real, measurable functions in emotional health and cognitive performance. Jungian psychology tells us how to read them, how to decode the symbolic language through which the dreaming brain communicates its insights.
Common questions
Why do we dream?
There is no single agreed answer, and that is the honest state of the science. The leading ideas, that dreaming processes emotion, consolidates memory, rehearses threats, or narrates random signals, each explain part of the picture and none explain all of it. What is clear is that dreaming does measurable work, even if its ultimate purpose stays open.
Do we dream every night?
Almost certainly, whether or not you remember it. Most adults move through four to six REM periods a night, and dreaming happens in other stages too. People who say they never dream are usually people who rarely recall them.
Do dreams only happen in REM sleep?
No. REM produces the most vivid, story-like dreams, but people woken from non-REM sleep report dreams too, usually quieter and more thought-like. Some researchers think the mechanism of dreaming is separate from REM altogether.
Are dreams meaningful or just random brain activity?
Probably both, at different levels. A dream may begin in more or less random signals and still be shaped by your memories, emotions, and concerns into something worth reading. The raw material can be noisy and the finished dream still meaningful.
Can science tell me what my specific dream means?
Not directly. Science explains what dreaming does in general, not what your dream about your childhood home means for you. That reading comes from connecting the dream to your own life, which is where psychological approaches, and a good conversation, come in.




