Rocks are categorized into three main types: igneous, sedimentary, and metamorphic, based on their formation processes. Each type provides crucial information about Earth's history, and studying them helps to understand geological, environmental, and even biological processes.