Since y'all don't seem to understand how fossil fuels affect the environment imma spell it out for you...
Here's the run down on how it works: UV light from the sun makes its way into the earth’s atmosphere which provides the planet with energy. The rays that do not get used up(about 30 percent) are reflected back into space as heat. But some of these waves collide with particles in the atmosphere such as carbon dioxide and methane which absorb the heat and traps it in the earth’s atmosphere. So if more gasses such as carbon dioxide and methane are released into the atmosphere by human activity, more heat is trapped by those gasses, therefore warming the planet at a higher rate. Hope this helps:)