What are the different types of rocks?
Rocks are classified into three types: igneous, sedimentary, and metamorphic. Igneous rocks are formed through the cooling and solidification of magma or lava. They can be further classified as intrusive and extrusive based on their location of formation. Sedimentary rocks are formed from the accumulation and compaction of sediments. Metamorphic rocks are formed from the transformation of pre-existing rocks due to changes in pressure, temperature, or chemical environment. The three main types of rocks are used to classify various rock formations and geological structures.