Carbon dioxide and methane are greenhouse gases. Carbon dioxide produces the maximum greenhouse effect.