Sedimentary rocks form layers over thousands of years as eroded debris from mountains and rivers is deposited in different environments. By studying the composition of sediments and the order of layers, geologists can interpret changes in earth's climate, ecosystems and environment over time. For example, examining sediment layers in the Grand Canyon reveals details about what animals lived there and how the climate changed throughout history. The document discusses how sedimentary rock layers tell the story of earth's past.