Magma is extremely hot liquid and semi-liquid rock located under Earth’s surface. When magma flows onto Earth’s surface, it is called lava.