Magma turns into intrusive igneous rock, which turns into metamorphic rock, which turns into soil
cooling and crystalization underground, heat and pressure, erosion and weathering
melting, erosion and weathering, heat and pressure
heat and pressure, erosion and weathering, heat and pressure
cooling and crystallization above ground, erosion and weathering, heat and pressure