Shales and mudrocks contain roughly 95 percent of the organic matter in all sedimentary rocks. However, this amounts to less than one percent by mass in an average shale. Black shales form in anoxic (without oxygen) conditions. They contain free carbon and iron sulfides such as pyrite. This produces the black colouration.