Some gases present in the atmosphere such as carbon dioxide, carbon monoxide, methane, and water vapour trap heat from radiating back to the space.
The natural green house gases act like a big blanket around the earth, keeping it warm and making life possible without which temperatures would have fallen to sub zero values.
This phenomenon of naturally warming up is called ‘Green house effect’.