Answer:
The Earth radiates energy at wavelengths much longer than the Sun because it is colder. Part of this longwave radiation is absorbed by greenhouse gases which then radiate energy into all directions, including downwards and thereby trapping heat in the atmosphere.