Some of the visible light that arrives at the surface of our planet is absorbed by the ground and warms it.
The warm ground emits infrared radiation, which heats the atmosphere.
This phenomenon is the greenhouse effect and it keeps the Earth warm.
The oxygen (O2) we need to breathe.
The carbon dioxide (CO2) used in photosynthesis.
The nitrogen (N2) used by some bacteria as a nutrient.