The greenhouse effect describes the process where atmospheric gases trap heat (longwave radiation) radiated by the Earth's surface, warming the atmosphere. The atmosphere receives energy directly from the sun (shortwave) and indirectly from the Earth's surface (longwave).