The document discusses the three main categories of rocks: igneous, sedimentary, and metamorphic. It provides details on the formation of different types of rocks within each category. Igneous rocks form from cooling magma, either underground or from volcanic eruptions. Sedimentary rocks form from the compaction and cementation of sediments. Metamorphic rocks form from changes to existing rocks through heat or pressure. Examples are given for common rock types within each category, along with brief descriptions of their formation processes.