Combined with coal,this element is used in weapons?

The carbon from coal or charcoal, when combined with oxygen, chlorine and potassium in other compounds, makes gunpowder.