The plant or animal must be encased in a substance that prevents destruction or erosion. Ice, tar, or layers of mud or clay can isolate the remains from sunlight, air, and consumption by other...
Probably the best condition for fossil creation/preservation would be aqueous catastrophism (ie... flood), stratum deposited in rapid succession. Quick coverage of plant or life form would/do present...