Answer:
Fossil fuels are generally mixtures of Carbon based compounds. When these compounds undergo a Stoichiometric combustion process, this yields CO2 and water H2O. CO2 is a greenhouse gas that enhances the greenhouse effect by trapping additional radiation and thereby warming the atmosphere.
There is also other factors that play into Global warming as well, such as deforestation.