Below the crust is warm and almost-liquid rock that is always moving around (the Earth's mantle). Then, there is a thin liquid layer of heated rock (the outer core). This is very hot: . The middle of the inside of the Earth would be liquid as well but all the weight of the rock above it pushes it back into being solid. This solid middle part (the inner core) is almost all iron. This is what makes the Earth magnetic.