Four billion years ago, Mars was a blue world. Rivers ran across its surface, a thick atmosphere kept the warmth in, and a hot magnetic core churned deep underground. Today the same planet is a frozen red wasteland, and the difference between those two pictures comes down to one invisible switch: the magnetic shield. When it failed, the Sun itself finished the job.
Start with the shield. A planet's magnetic field is generated by liquid metal moving inside its core, and it works like an umbrella against the solar wind — a steady stream of charged particles that the Sun throws into space at hundreds of kilometers per second. Earth still has its active core, so the umbrella stays open. Mars is a smaller planet, so its core cooled much faster. When the liquid metal slowed down and stiffened, the magnetic field collapsed, and the umbrella over Mars simply shut down.
What happened next is a slow-motion game of cosmic billiards. With nothing left to deflect the incoming particles, the solar wind hit the Martian atmosphere directly, knocking molecules away one by one into deep space — each collision passing its energy along like a cue ball striking a rack. Over hundreds of millions of years that molecular pinball stripped the atmosphere thinner and thinner. And that is the crucial link to the oceans: an atmosphere is a lid that holds warmth and pressure on the water. As the lid was pulled away, the pressure dropped, liquid water could no longer stay stable, and the rivers and seas either froze or evaporated off the top of the thinning air.
The dried-out Red Planet is therefore not a mystery but a sequence: core cools, shield collapses, wind strips the air, air thins, water goes. Earth kept the same four-billion-year clock running with one advantage — a core that never cooled. Every Mars rover that rolls over a dry riverbed is reading the receipt of that loss, and it is also a warning filed in rock: the magnetic field you cannot see is the reason the oceans you can see are still here.