You can lose a large slab of cerebral cortex and stay awake. Lose a fingernail-sized patch in the brainstem and you never wake up again — "being awake" is not decided in the cortex at all.
The brainstem is the stalk connecting brain to spinal cord: midbrain, pons and medulla, top to bottom, and no thicker than your thumb. It runs breathing, heartbeat and swallowing — the things you never have to think about. But its truly remarkable job is a different one: deciding whether the 16 billion cortical neurons above it are currently online.
In 1949 Moruzzi and Magoun electrically stimulated the loose mass of cells running up the core of the brainstem (the reticular formation) in anaesthetized cats. The EEG immediately flipped from the big slow waves of sleep to the small fast waves of waking. They called the ascending route the reticular activating system (ARAS). It carries no content at all — no images, no sounds — it does exactly one thing: put the cortex into a state where it can work.
We now know it isn't one vague "net" but several named groups of cells, each making its own chemical messenger and spraying it brain-wide. They travel up two routes:
You might assume wakefulness is continuously adjustable, a knob turning smoothly from "very sleepy" to "wide awake." It isn't. Sleep and waking are a bistable switch: a small cluster in the hypothalamus (the VLPO) is dedicated to promoting sleep, and it and the arousal nuclei above mutually suppress each other — whoever gets the upper hand pins the other down.
This "each suppresses the other" wiring is what engineers call a flip-flop: the middle state is inherently unstable, so any nudge amplifies itself and the whole thing snaps to one side. Which is why both falling asleep and jolting awake happen abruptly, and why it's so hard to hover half-asleep — when you genuinely do get stuck there, that's pathology (sleep paralysis and sleepwalking are both the switch failing to flip cleanly).
So what pushes the switch? Adenosine. It's the waste left over after cells spend energy, and it accumulates in the brain every minute you're awake; past a threshold it clamps down on the arousal nuclei and gives VLPO a hand. That is the chemistry of "the longer you stay up, the sleepier you get." And what caffeine does is refreshingly crude: it looks enough like adenosine to take adenosine's seat, so adenosine can't reach anyone. Note that it hasn't removed your sleepiness, only deferred the bill — once it wears off, all the accumulated adenosine arrives at once.
The easiest misreading: if the brainstem is this critical, is consciousness "located" there? Quite the opposite. Two clinical contrasts settle it:
Locked-in syndrome — the ventral pons (the descending motor pathway) is cut. The person is completely paralysed and cannot speak, but the arousal route and the cortex are intact, so consciousness is entirely normal; they communicate by moving their eyes vertically. Part of the brainstem is destroyed and awareness is untouched.
Unresponsive wakefulness syndrome (formerly the vegetative state) — the reverse: brainstem and arousal system fine, cortex extensively destroyed. The person has full sleep-wake cycles, opens their eyes, yawns, looks "awake" — with no detectable content of consciousness.
Put the two side by side and the division of labour is plain: the contents of consciousness are in the cortex; the power supply is in the brainstem. The brainstem has no idea what you're thinking; it only keeps the cortex in a state where thinking is possible. It's also why the targets of general anaesthetics land so heavily on this arousal chain and on the → thalamus — you don't have to touch a hair of the cortex, just pull the breaker.
Topic 16 The Switches of Consciousness · Topic 13 Global Workspace · Topic 22 Sleep as an Intervention · Topic 23 Light, Rhythm & the Vagus
Reticular formation · Locus coeruleus · VLPO and the sleep switch · Orexin · Locked-in syndrome · Moruzzi & Magoun 1949