Magma is the hot liquid rock under the surface of the Earth, it is known as lava after it comes out of a volcano.