rock, aggregation of solid matter composed of one or more of the minerals forming the earth's crust. The scientific study of rocks is called petrology. Rocks are commonly divided, according to their origin, into three major classes—igneous, sedimentary, and metamorphic.