Greenhouse gases absorb and emit radiant energy in the thermal infrared range. These gases are responsible for the greenhouse effect on planets.
Most fuels are forms of hydrocarbon. Fossil fuels are hydrocarbon fuels are derived from living matter. These include oil and fuel made from it, including gasoline, coal, and wood. Burning any hydrocarbon or fossil fuels produces carbon dioxide. Carbon dioxide is collected in the earth's atmosphere because so much fuel is being burned. The carbon dioxide acts as a blanket. It allows heat from the sun to come in and prevents it from radiating away at night. As a result, the earth is warming up. This is the greenhouse effect.