Magma
If you could travel to the center of the Earth, you would find that it gets hotter and hotter as you travel deeper. The heat is naturally produced when radioactive elements break apart. Within the Earth’s mantle layer it is hot enough that much of the rock has melted, turning it into a liquid that we call molten rock.The molten rock is called magma. Magma is so hot that it glows white and is so bright that you’d need sunglasses to look at it! If it flows into an area underground that is less hot, it cools, becomes yellow, and then increasingly deeper shades of red. As it cools slowly, minerals crystallize from the melt forming intrusive igneous rocks like granite.
If magma finds a crack in the Earth and comes to the surface, it is called lava and cools to form extrusive igneous rocks like basalt