To determine the relative age of different rocks, geologists start with the assumption that unless something has happened, in a sequence of sedimentary rock layers, the newer rock layers will be on top of older ones. This rule is common sense, but it serves as a powerful reference point.
Geologists draw on it and other basic principles ( to determine the relative ages of rocks or features such as faults.
It’s based either on fossils which are recognized to represent a particular interval of time, or on radioactive decay of specific isotopes. Based on the Rule of Superposition, certain organisms clearly lived before others, during certain geologic times.
After all, a dinosaur wouldn’t be caught dead next to a trilobite.
For example, which is older, the bricks in a building or the building itself?