Earth is protected by greenhouse gases to keep atmospheric conditions stable to sustain life. It protects us from the cold universe by keeping the earth warm.
The greenhouse effect is mainly driven by carbon dioxide and the never-ending burning of fossil fuels contributes to climate change. To fulfill our limitless desire for energy, we are burning considerable amounts of fossil fuels. Because of this, the greenhouse gas later is getting thicker and as an end result it makes the Earth warmer.