Fossils are traces of ancient plants and animals that have been replaced by minerals over time. They provide clues about past life, though we can never fully reconstruct ancient ecosystems. Fossils form when organisms are quickly buried and the remains are slowly replaced by minerals. Paleontologists and geologists search rock layers and excavate fossils to learn about dinosaurs, early mammals, and climates from clues across many fossil sites.