Geography
Answer
In igneous and metamorphic rocks, minerals are formed when substances in liquid/molten and gaseous forms are forced upward through cavities towards the earth's surface. They cool and solidify as they rise and get deposited in the cracks, crevices, faults or joints of these rocks.