Magma is melted stone. Basically when things get warm they melt, as you know from ice. And for stone this temperature is several hundrets or even thousand degrees of celsius (I don’t know the number, sorry).
And this temperature is only reached in the center of the earth, which is where Magma always comes from.
Comments