What is the importance of greenhouse gases?

If you didn't have greenhouse gases the Earth would not stay heated.