Minerals are inorganic, solid substances that occur naturally and have a definite chemical composition and crystal structure. They form through the cooling of magma or evaporation of solutions. Common elements in minerals include silicon, aluminum, calcium, oxygen, iron, and magnesium. Minerals are the building blocks of rocks and are economically important as gems and sources of metal ores. Their properties such as hardness, crystal shape, and color can be used to help identify different mineral types.