Fossils give us evidence about the plants and animals that lived long ago, and the nature of the environment at that time.
The presence of an animal fossil in a rock gives evidence of the time period the animal lived in.