When the magma cools and hardens, it turns into igneous rock.
(the magma; cools; ) (it; turns; into igneous rock; T:When the magma cools and hardens)
the magma it
cools turns
into igneous rock T:When the magma cools and hardens