Earth
Below the crust is hot and almost-liquid rock which 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 pressure of the rock above it makes it a  solid. This solid middle part (the inner core) is almost all iron. It is what makes the Earth magnetic.