Carbon dioxide (CO2) contributes to global warming by acting as a greenhouse gas, trapping heat in the atmosphere. This occurs because CO2 absorbs infrared radiation (heat) emitted from the Earth’s surface and then re-emits it in all directions, including back towards the Earth, warming the planet.