Rock layers are formed through sedimentary processes over long periods of time. Sediments are deposited in layers and compacted into sedimentary rock. The law of superposition states that older rock layers are below younger rock layers. Stratigraphy studies the order and ages of rock layers. Geologists use several principles including cross-cutting relationships, inclusions, and index fossils to correlate and date rock layers between different regions.