Fossilisation begins when an organism dies and is quickly buried by sediment (mud, sand, or volcanic ash). Quick burial is essential - it protects the remains from being eaten by scavengers or broken down by bacteria. Without quick burial, the body would decompose completely and no fossil would form.
Check: Why is quick burial important for fossilisation?