A fossil is any preserved remains or traces of ancient plants and animals. Fossils form when organic materials are replaced or preserved by minerals in sediment over millions of years. Conditions that promote fossilization include rapid burial to prevent decomposition, and hard body parts like bones or shells. An altered fossil is one where the original materials have been partially or completely replaced by minerals through processes like permineralization, replacement, carbonization, or mold and cast formation. Different modes of preservation can result in fossil traces that provide clues about ancient life.