Minerals are formed by organic processes, crystallization, melting and crystallographic transformations that occur in the mineral's solid state. Crystallographic transformations generally occur with a change in the pressure or temperature in the material surrounding the mineral deposit.
Minerals sometimes form as a result of their molecular components, such as calcium, being taken up by living things. An example of this would be coccolithophores incorporating calcium carbonate into their skeletons. Minerals sometimes form by gathering together in liquid to build crystals. New minerals can be also be synthesized inside of a cooling igneous rock. Most minerals found on the Earth's crust have been formed in this way.