Greenhouse gases work because they:
emit alpha particles
absorb ultraviolet radiation
absorb infrared radiation
reflect sunlight back into the space