The study of Earth's geological history, including the processes that led to the formation of the rock structures.