Magnetic Field and Temperature

Discuss the relationship between magnetic field and temperature. How can that be applied on the earth’s magnetic field and atmosphere temperature?