Carbon dioxide (CO2) is a trace gas in the atmosphere, but it plays a significant role in the greenhouse effect. It absorbs and traps heat from the Earth's surface, contributing to global warming.