In the case of the Earth, the magnetic field is induced and constantly maintained by the convection of liquid iron in the outer core, a requirement for the induction of field is a rotating fluid.
The magnetic field is induced and constantly maintained by the convection of liquid iron in the outer core, a requirement for the induction of field is a rotating fluid. This is in the case of the Earth.