1. Crystallization from a melt: This is the most common method. As molten rock (magma or lava) cools, the atoms within it arrange themselves into specific, repeating patterns, forming crystals. This is how igneous rocks, like granite and basalt, form.
2. Precipitation from a solution: Minerals can also form when dissolved substances in water become supersaturated and begin to precipitate out. This can happen in oceans, lakes, or even caves. Evaporites, like halite (table salt), are formed this way.
3. Solid-state diffusion: This involves the slow movement of atoms within a solid. It can happen at high temperatures and pressures, causing the atoms to rearrange and form new minerals. This is how some metamorphic rocks, like marble, are formed.
4. Biomineralization: This is the process by which living organisms create minerals. For example, shells are formed from calcium carbonate, and teeth and bones contain apatite.
5. Alteration of existing minerals: Minerals can be transformed into different minerals by chemical reactions. This can happen due to exposure to water, oxygen, or other chemicals. This process is important in the formation of many types of rocks, including sedimentary and metamorphic rocks.