The geodynamo is the mechanism by which Earth's magnetic field is generated through the motion of molten iron and nickel in its outer core. This process involves the conversion of kinetic energy from fluid motion into magnetic energy, sustaining the geomagnetic field over geological timescales.