Rocks are naturally occurring mixtures of minerals, mineraloids, glass or organic matter that are divided into three main types - igneous, sedimentary, and metamorphic - based on how they were formed. Rocks are continually changed over time by various geological processes through the rock cycle, where one type of rock can be transformed into another through weathering, erosion, melting and other changes. The core, mantle and crust act as a recycling machine that redistributes rocks.