Coal is mostly carbon with varying quantities of other elements; primarily hydrogen, sulphur, oxygen, and nitrogen.