Greenhouse gases are atmospheric gases that trap heat. Carbon dioxide is a primary greenhouse gas.