Scientists study Earth's past environments and lifeforms by examining fossils. Fossils form when organisms are buried and their remains are replaced with minerals over time. There are different types of fossils including molds, casts, petrified remains, preserved fossils like those trapped in ice or amber, carbonized remains, and trace fossils like footprints. Together, the analysis of these various fossil types provides evidence about ancient organisms, environments, behaviors and evolutionary relationships.