Fossil fuels release carbon dioxide when they burn, which adds to the greenhouse effect and increases global warming. Of the three fossil fuels, for a given amount of energy released, coal produces the most carbon dioxide and natural gas produces the least.