Fossils are remains of vegetation and animals buried under the sediments. The sedimentary rocks are stratified rocks and are found in layers. These fossils are preserved in between these layers. But in Igneous rocks, the fossils are destroyed due to high temperature of lava.