"[W]hy does our planet have a magnetic field at all? . . . Liquid iron, circulating around the solid part of the core as Earth rotates, acts like a wire carrying an electric current. And as Faraday showed us, electric currents produce magnetic fields. And that's a good thing. Our magnetic field protects us from the onslaught of cosmic rays, which would be very damaging to our biosphere."
January 1, 1970
https://en.wikiquote.org/wiki/Cosmos%3A_A_Spacetime_Odyssey