Here's a breakdown:
* Mantle: This is the layer beneath the Earth's crust, extending to a depth of about 2900 kilometers. The mantle is mostly solid rock, but under immense pressure and heat, it can partially melt. This molten rock, called magma, rises through the crust and can erupt as lava at the surface.
* Crust: The Earth's outermost layer can also melt, especially in areas where tectonic plates collide or where there is a lot of volcanic activity. This melted rock can either rise to the surface as lava or solidify underground, forming intrusive igneous rocks.
The process of rock melting and subsequent igneous formation is complex and influenced by factors like:
* Temperature: As the temperature increases, rocks are more likely to melt.
* Pressure: Increased pressure raises the melting point of rocks.
* Water content: Water lowers the melting point of rocks.
* Composition: Different types of rocks have different melting points.
So, while the mantle is the primary source of magma, both the mantle and crust contribute to igneous rock formation.