These particular fossils had all formed through a process called prioritization whereby pyrite a substance also known as fool's gold and composed of iron sulfide seeped into the tissues of the dead animals and mineralized them.
But the waste product that these chemolithoautotrophs make is often in the form of minerals, like rust or pyrite, like fool's gold, or carminites, like limestone.