Fossils are the preserved remains or traces of ancient organisms. They form when organisms are buried rapidly in sediment or other media, protecting them from decay. This can occur through events like mudslides, floods, or volcanic eruptions. Over time, minerals replace the organic material through permineralization or recrystallization, leaving an imprint of the original organism. The type of fossil produced depends on factors like the environment and which parts of the organism were made of hard or soft tissues. Body fossils directly preserve bones, teeth, or shells, while trace fossils preserve tracks, burrows, or other signs of biological activity. Fossils provide evidence of prehistoric life and are useful for reconstructing Earth's geological history