what happens to magma when it crystalizes

When magma crystalizes, it solidifies into rock. The specific type of rock formed depends on the composition of the magma. For example, if the magma is rich in silica, it will crystalize into granite, while magma with lower silica content will crystalize into basalt.

As the magma cools and crystalizes, minerals in the magma begin to form solid structures, creating a network of interlocking crystals. This process can happen both underground, forming intrusive igneous rocks, or on the Earth's surface, forming extrusive igneous rocks.

Once the magma has completely crystalized, it becomes a solid rock mass known as an igneous rock. Over time, these rocks can be uplifted and exposed at the Earth's surface through processes such as erosion, where they continue to weather and change over time.