The rotation and convection of molten iron at the center of the planet creates a dynamo effect, generating Earth's magnetic field. alxpin / iStock Swirling around the solid inner core of our planet, ...