Cooling magma can form crystals

Magma is melted rock below Earth’s surface. As it cools, atoms can arrange themselves into crystals, which may become part of an igneous rock. 1 2

Minerals can also form from water

Water can carry dissolved materials. When the water evaporates or its conditions change, those materials may form solid minerals, as salt can form when salty water dries. 1 2

Cooling speed affects crystal size

When melted rock cools slowly underground, crystals may have time to grow larger. If lava cools quickly at the surface, the crystals may stay very small. Geologists can look at crystal size and arrangement to learn how and where a rock formed. 1 2