Energy from the sun affects both weather and climate on Earth, and heats the surface, in contrast, radiate the ground this energy and return it back into space, and trapping greenhouse gases in the atmosphere (water vapor, carbon dioxide, and other gases) some of these energy released, and retain heat somewhat like the glass panels in the greenhouse. Without this greenhouse effect, the earth will become a temperature much lower than it is now, and Ststhil life that we know today