This document discusses the formation of rocks from minerals and their classification into three main groups: igneous, sedimentary, and metamorphic rocks. It describes how igneous rocks form from the cooling of magma, either deep underground or at the Earth's surface. Sedimentary rocks form from the compression of sediments and can contain fossils. Metamorphic rocks are formed from the alteration of existing igneous and sedimentary rocks through heat and pressure in the Earth. The document provides examples of common rock types in each category and their distinguishing features.