When the thermal radiation (or heat) arrives from the sun, some of it is bounced from the surface of the Earth by the ozone layer, leaving only some heat to make it through to heat the Earth.
This heat then rises back through the atmosphere, but most of it gets trapped by the greenhouse gases, which causes it to remain in the Earth's atmosphere.
Without the effect, the heat would be lost.