Rocks form in different ways and are classified based on their composition and how they are formed. The rock cycle shows how rocks continuously change over time through geological processes like weathering, erosion, deposition, and metamorphism. Scientists use various methods to determine the relative and absolute ages of rocks, including analyzing rock layers and fossils. Index fossils in particular allow scientists to relatively date rock layers based on the period of time specific fossils existed.