Pyrite is usually found associated with other sulphides or oxides in quartz veins, sedimentary rock, and metamorphic rock, as well as in coal beds and as a replacement mineral in fossils. Despite being nicknamed fool's gold, pyrite is sometimes found in association with small amounts of gold.