What is the most important factor for fossil formation?

minerals

Time, time, time!

Pressure and heat

Presence of organic matter (such as dead plants and animals)