The light radiated by our sun carries energy, part of which gets absorbed and transformed into heat when it reaches a surface. That is why places in the sun feel warmer than those in the shade. Another part of the light is reflected.Once warmed, these surfaces release heat, which warms the air above them.
hope this helps!