Magma

Magma was the liquid state of rock when melted by some means, from the internal heating of a planet or by a hot body such as a star. Upon reaching the surface of a planet, via such processes as volcanoes, magma became known as lava.