The radiation received from Sun on the surface of EArth contains UV rays, visible light, infra red, and much more above UV rays and much less than infra red rays also.
UV rays are absorbed by the atmosphere - the energy in them is suitable for the excitation of atmospheric gases and materials present there. The absorbed UV rays again cause excitation of atoms and release of energy (radiation) in different directions.
Energy present in the light rays and infra red is less. Some a little light energy is absorbed and the remaining falls on the surface of Earth.