Global warming occurs due to the presence of carbon dioxide, CFCs, methane in the atmosphere. Carbon dioxide acts as a transparent gas to incoming shortwave radiations which the earth re-radiates into space. It, therefore, traps the outgoing longwave radiations thus warming the lower atmosphere of the earth thereby causing global warming.