When oil, gas or coal burns, carbon in the fuel combines with oxygen from the air to make carbon dioxide.