Minerals occur in the cracks, crevices, faults or joints in igneous and metamorphic rocks. They are usually formed when minerals in liquid/ molten and gaseous forms are forced upward through cavities towards the Earth's surface. Eventually, they cool and solidify as they rise.