The study of how fossils are formed and preserved, including the factors that contribute to their decay and destruction.