Petroleum coke (petcoke) is a black colored solid composed primarily of carbon, and may contain limited amounts of elemental forms of sulfur, metals and nonvolatile inorganic compounds. Petcoke is the coproduct of several processes used in petroleum refining to upgrade "residuum" into gasoline and middle distillaterange fuels.