Carbon dioxide is an important greenhouse gas that helps trap heat in the atmosphere. This helps the Earth's surface maintain the optimum temperature that would allow liquid water to be stable on its surface. Lack of carbon dioxide would result in a frozen planet.