The relative ages of sedimentary rock can be determined by the sequence of layers. Index fossils allow rock layers to be correlated by age, although there are vast distances between the layers.