when an animal dies and is rapidly buried underneath the ground it eventually gets so deep that the oxygen in the air is prevented from reaching it this significantly slows the decay of the animal and over a long period of time special minerals from the earth seep into the animal's body and gradually replace its organic material cell by cell this process slowly changes it into stone which is how some fossils are formed