When sunlight reaches Earth's surface some is absorbed and warms the earth and most of the rest is radiated back to the atmosphere at a longer wavelength than the sun light. Some of these longer wavelengths are absorbed by greenhouse gases in the atmosphere before they are lost to space. The absorption of this longwave radiant energy warms the atmosphere. These greenhouse gases act like a mirror and reflect back to the Earth some of the heat energy which would otherwise be lost to space. The reflecting back of heat energy by the atmosphere is called the "greenhouse effect".