Why does Earth have magnetic poles?

Earth is the only rocky body in the inner solar system with strong magnetic poles. But where do these poles come from, and what do they do?

3D rendering of Planet Earth's magnetic field.
A 3D rendering of Earth's magnetic field.
(Image credit: Alamy)

Earth is unique in the solar system for a number of reasons: It's the only planet with a breathable oxygen atmosphere, it's covered in liquid water and it's the only celestial body (that we know of) to harbor life. An often-overlooked characteristic that makes our planet special, however, is that it's the only rocky body in the inner solar system with strong magnetic poles  — your compass would be useless on Mars.

But where do these poles come from, and what do they do? To answer these questions, let's start with a journey to the center of our planet.

Joanna Thompson
Live Science Contributor

Joanna Thompson is a science journalist and runner based in New York. She holds a B.S. in Zoology and a B.A. in Creative Writing from North Carolina State University, as well as a Master's in Science Journalism from NYU's Science, Health and Environmental Reporting Program. Find more of her work in Scientific American, The Daily Beast, Atlas Obscura or Audubon Magazine.