Earth's interior heat comes from two main sources: residual heat left over from the planet's formation and ongoing radioactive decay within Earth's core and mantle. This heat keeps the outer core liquid through convection of iron and nickel, generating the Earth's magnetic field, and drives thermal convection in the mantle which powers plate tectonics at the surface. Heat is eventually released through volcanic and tectonic activity that forms and cools new crust.