Igneous or magmatic rocks
In deep areas of the interior of the Earth, the temperature is so high that the rocks are melted, mixed with water and gases, forming magma. When conditions change and magma cools and solidifies, the resulting rocks will be magmatic or igneous rocks.
Magma is a mass of molten rocks, formed by silicates with water and gases dissolved in its interior due to the effect of pressure.
The magma rises towards the surface through areas where the pressure is lower until it reaches the earth's crust or even comes to the surface. When it cools and solidifies, it forms igneous or magmatic rocks.
Remember that for magmatism to occur, there must be fusion of materials. If it does not melt, the resulting rock is a metamorphic rock.