Burning fossil fuels is the main cause of global warming. When fossil fuels such as coal, oil, and natural gas are burned for energy, they release greenhouse gases, primarily carbon dioxide, into the atmosphere. These greenhouse gases trap heat from the sun and prevent it from escaping back into space, leading to a rise in global temperatures. This phenomenon, known as the greenhouse effect, is responsible for the increase in global temperatures and the resulting climate change.