Veritable shields against high-energy particles, planets' magnetic fields are produced by iron moving in their liquid core.