Principle of faunal succession
The principle of faunal succession, also known as the law of faunal succession, is based on the observation that sedimentary rock strata contain fossilized flora and fauna, and that these fossils succeed each other vertically in a specific, reliable order that can be identified over wide horizontal distances. A fossilized Neanderthal bone (less than 500,000 years old) will never be found in the same stratum as a fossilized Megalosaurus (about 160 million years old), for example, because neanderthals and megalosaurs lived during different geological periods, separated by millions of years.
Source: Wikipedia — Principle of faunal succession (CC BY-SA 4.0)