Answer:
Scientists know that today the Earth's magnetic field is powered by the solidification of the planet's liquid iron core. The cooling and crystallization of the core stirs up the surrounding liquid iron, creating powerful electric currents that generate a magnetic field stretching far out into space.