Earth’s magnetic field, generated by the motion of molten iron in its outer core, extends tens of thousands of kilometers into space, forming the magnetosphere. This shield protects us from harmful solar wind particles and cosmic radiation, making life on Earth possible. Without it, the solar wind could strip away our atmosphere, as it did on Mars.