In chemistry, a rock is a naturally occurring solid aggregate of one or more minerals or mineraloids. Rocks are classified by mineral and chemical composition, texture, and the process by which they were formed. They can be further classified into three main types: igneous, sedimentary, and metamorphic rocks.
Igneous rocks are formed from the solidification of molten rock material. They can be further classified into two main types: intrusive and extrusive igneous rocks. Intrusive igneous rocks form from the cooling of magma below the Earth's surface, while extrusive igneous rocks form from the cooling of lava on the Earth's surface.
Sedimentary rocks are formed from the accumulation and lithification of sediment, which may consist of rock fragments, mineral grains, or organic material. They can be further classified into three main types: clastic, chemical, and organic sedimentary rocks.
Metamorphic rocks are formed from the alteration of pre-existing rocks by heat, pressure, or chemically active fluids. They can be further classified into two main types: foliated and non-foliated metamorphic rocks. Foliated metamorphic rocks have a layered or banded appearance, while non-foliated metamorphic rocks do not exhibit a layered structure.