Minerals are inorganic crystalline substances formed through geological processes. They are studied in mineralogy. Crystals have orderly atomic arrangements. Rocks are aggregates of two or more minerals and are studied in petrology. There are three rock types: igneous rocks form from cooling magma, sedimentary rocks form through weathering or biological/chemical processes, and metamorphic rocks form from the transformation of other rocks under heat and pressure. The rock cycle illustrates the formation and transformation of these three rock types over time through weathering, erosion, and other geological processes.