A night shift, not a shutdown
Sleep looks like rest, but the brain is doing scheduled work it cannot do while you are awake. Through the night you cycle roughly every ninety minutes between light sleep, deep sleep and REM sleep — the stage named for the rapid eye movements beneath closed lids, when most vivid dreaming happens.
Each stage has its own jobs. Deep sleep is the body's repair shift: growth hormone is released, tissues are maintained, and the immune system is tuned. REM sleep is busier for the mind.
Filing the day's memories
During sleep the brain replays and sorts the day's experiences, strengthening important memories and letting unimportant details fade. Students who sleep after studying consistently remember more than those who pull an all-nighter — the filing happens overnight, not at the desk.
Sleep also appears to clean the brain. During deep sleep, fluid washes through brain tissue more freely, carrying away waste products that build up during waking hours — housekeeping that may protect the brain across a lifetime.
How much is enough
The need is real and measurable. Teenagers need about eight to ten hours a night, adults seven to nine, and the bill for cheating is paid in attention, mood and reaction time the next day — driving while very tired slows reactions much like alcohol does.
Animals underline the point: every creature studied sleeps in some form, even though sleep leaves them vulnerable. A behaviour that costly, kept by evolution everywhere, must be doing something essential. Even fruit flies sleep, and dolphins sleep with one half of the brain at a time so they can keep swimming and breathing.

