Crystallization is the process by which atoms or molecules arrange themselves to form a crystalline solid with a regular internal structure.
In geology, it occurs mainly when magma cools; when a chemical solution precipitates minerals; or when certain minerals recrystallize during metamorphism.