Iron sulfides occur widely in nature in the form of iron–sulfur proteins.
As organic matter decays under low-oxygen (or hypoxic) conditions such as in swamps or dead zones of lakes and oceans, sulfate-reducing bacteria reduce various sulfates present in the water, producing hydrogen sulfide. Some of the hydrogen sulfide will react with metal ions in the water or solid to produce iron or metal sulfides, which are not water-soluble. These metal sulfides, such as iron(II) sulfide, are often black or brown, leading to the color of sludge.
Pyrrhotite is a waste product of the Desulfovibrio bacteria, a sulfate reducing bacteria.
When eggs are cooked for a long time, the yolk's surface may turn green. This color change is due to iron(II) sulfide, which forms as iron from the yolk reacts with hydrogen sulfide released from the egg white by the heat. This reaction occurs more rapidly in older eggs as the whites are more alkaline.
The presence of ferrous sulfide as a visible black precipitate in the growth medium peptone iron agar can be used to distinguish between microorganisms that produce the cysteine metabolizing enzyme cysteine desulfhydrase and those that do not. Peptone iron agar contains the amino acid cysteine and a chemical indicator, ferric citrate. The degradation of cysteine releases hydrogen sulfide gas that reacts with the ferric citrate to produce ferrous sulfide.