What causes the Earth to have magnetic field?
I think it might be because of the earths spinning core, but I could be wrong