Pyrite is often found in organic-rich sediments and plays a role in fossil formation, including in coal deposits.