Minerals are naturally occurring inorganic crystalline solids with a definite chemical composition and physical properties. The study of minerals is called mineralogy. Minerals can be identified by their crystal structure, hardness, luster, color, density and other physical properties. The most abundant elements in Earth's crust are oxygen, silicon, aluminum, iron, calcium, magnesium, sodium and potassium. Minerals form through processes such as cooling of magma, evaporation of briny liquids, and precipitation from fluids. Rocks are assemblages of minerals or mineraloids in a solid state and can be igneous, sedimentary or metamorphic.