The process that generates Earth’s magnetic field is called the geodynamo. It operates deep inside the planet, where electrically conductive liquid iron alloys move through the outer core and produce electric currents.
Heat escaping from Earth’s core drives convection in the molten outer core. Chemical changes also contribute: as the inner core slowly solidifies, lighter elements are released into the outer core, helping the liquid move. Earth’s rotation organizes these flows through the Coriolis effect. Together, the moving conductive fluid and the resulting electric currents sustain a self-reinforcing magnetic field.
“Core convection” is part of the mechanism, but it is not the name of the complete process. Plate tectonics reshapes Earth’s surface and helps move continents, while the solar wind is a stream of charged particles from the Sun that interacts with Earth’s magnetic field rather than creating the main field itself.
The geodynamo produces the magnetosphere, which deflects much of the solar wind and helps protect the atmosphere. Its field is not permanent in one fixed direction: geological records show that Earth’s magnetic poles have reversed many times. The field is generated mainly in the liquid outer core, not by the solid inner core alone.