The sun emits short wavelength radiation which passes through the layer of greenhouse gases in the atmosphere. It is absorbed by the Earth's surface and then re-emitted as long wavelength radiation, which is absorbed by greenhouse gases such as water vapour, methane and carbon dioxide. This increases the average global temperature.