During combustion, the reaction between coal and the air produces oxides of carbon, including carbon dioxide (CO2, an important greenhouse gas), oxides of sulfur (mainly sulfur dioxide, SO2), and various oxides of nitrogen (NOx).
Fires sometimes occur in coal beds underground.