So, what exactly is petcoke, and what is it used for? Petcoke is a byproduct created when bitumen found in tar sands, like those in Alberta, Canada, is refined into crude oil. Bitumen contains a higher number of carbon atoms than regular oil and it's these atoms, extracted from large hydrocarbon molecules using heat, that go on to form petcoke.