Petrology is the study of rocks and their composition, texture, and structure. There are three main types of rocks: igneous rocks, which form from cooling magma; metamorphic rocks, which form from existing rocks undergoing changes due to heat, pressure, and chemical reactions; and sedimentary rocks, which form from the compaction and cementation of sediments. Igneous rocks can be categorized as extrusive or intrusive, depending on where they solidify. Common igneous rocks include granite, basalt, and syenite. Sedimentary rocks form through the weathering of existing rocks and the deposition and lithification of sediments. Texture, minerals, and formation processes help classify and identify different