Fossils are remains or traces of past organisms, primarily found in sedimentary rocks, and index fossils help to determine the relative ages of rock layers. A fossil is considered an index fossil if it is from a species that existed for a short period, had a wide geographic distribution, and is unique. The geologic time scale is built from these fossils and marks significant events, like mass extinctions, while the relative ages of rocks are established using principles that arrange them in order from oldest to youngest.