Rocks are formed on Earth as igneous, sedimentary, or metamorphic rocks. Igneous rocks form when rocks are heated to the melting point which forms magma . ... Solid rock can be changed into a new rock by stresses that cause an increase in heat and pressure.
(Im not sure if this was the answer you were looking for but oh well)