When the dead remains of plants and animals are not completely decomposed by microorganisms they form fossils that sediment on the surface of mud or sand under rivers, lakes, etc.
Fossils serve as evidence for biological evolution.
They provide a geographical record of the existence of different organisms.
The branch of science that deals with the study of fossils are called Paleontology.