CO2 is a greenhouse gas. Greenhouse gases are responsible for trapping the heat in the earth's atmosphere. The heat trapped helps in maintaining the temperature on the earth. But, an increase in the concentration of CO2 on earth will cause more heat to be trapped in the atmosphere. As a result, the temperature of the earth will increase, and this is called global warming.