The atmosphere absorbs energy from the sun???s rays: most of that energy is reflected back into space but some is trapped and re-directed toward the surface in what is known as the greenhouse effect, similar to light passing through glass to warm a greenhouse.