A closer look at Planetary dynamo
Motion in an electrically conducting interior can sustain a global magnetic field.
Earth’s liquid outer core is the important conducting region. Rotation and internal energy help organize the moving fluid.
A planet can contain iron without having an Earth-like global field. The state and motion of the conducting material matter. For the surrounding ideas, see Planetary magnetosphere and Radiation belts.
Want to learn more about Planetary dynamo? Dynamo theory on Wikipedia.

