The study of rock layers and their relationships to each other, including their age and the history of how they formed.