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