Carbon dioxide is a greenhouse gas that keeps heat from the sun in the atmosphere.  When there's too much carbon dioxide, the atmosphere will get too warm.  Currently, carbon dioxide constitutes about 400 parts per million by volume of the atmosphere.  It was at 280 parts per million up until 250 years ago, the beginning of the Industrial Revolution.  The present concentration is the highest it's been in 800,000 years.