The sun emits short wavelength radiation (e.g. visible light or UV) and this radiation travels to earth, where some of it is reflected (e.g. by clouds) but the remaining radiation is absorbed by the surface of the Earth, increasing the Earth's temperature