Rocks are classified into three main types based on their formation processes: metamorphic, sedimentary, and igneous. Metamorphic rocks originate from existing rocks that undergo transformation due to high pressure and temperature, often resulting in the presence of crystals.