This document discusses the three main types of rocks: sedimentary rocks which are formed by the compression of sediments; metamorphic rocks which are formed by the alteration of pre-existing rocks due to heat, pressure, and chemical reactions; and igneous rocks which are formed by the cooling and solidification of magma or lava.