Carbon dioxide is a greenhouse gas, traps energy from the sun, thus preventing that energy from escaping into space. This is fortunate Without carbon dioxide, we would bake by day and freeze at night. But since the nineteenth century, human activity has increased the amount of carbon dioxide in the air by 40 percent.