Metamorphic rock can change into igneous or sedimentary rock. Igneous rock forms when magma cools and makes crystals. Magma is a hot liquid made of melted minerals. The minerals can form crystals when they cool. Igneous rock can form underground, where the magma cools slowly. Or, igneous rock can form above ground, where the magma cools quickly.