I have a hard time understanding why does earth have magnetic fields. My textbook reads:
"The Earth's core is very hot and molten, and the ions of iron and nickel are responsible for Earth's magnetism.
But how did it manage to create such huge magnetic fields?