Over millions of years, sediments such as sand and silt were laid down and compressed to form sedimentary rock layers. They preserve a record of ancient landscapes, climates, and organisms. Scientists often determine the correct sequence of sedimentary rock layers using the fossils found within them. They compare the fossils to figure out if two layers are from the same geologic time period, or if one layer is older than the other.