Increasing the pressure on a certain amount of crystals and/or rock can cause all of those crystals and/or rock to be smashed and stuck together due to high temperature (which helps melt and stick it all together), which causes the formation of a mineral.