Our atmosphere allows the high frequency radiation (Infrared rays) to pass through it, which comes from sun. This radiation reaches to earth and after some absorption (this radiation is also absorbed and radiated by green house gases), earth reflects back low frequency radiation (Infrared rays) which cannot pass through the atmosphere. This radiation is trapped in our atmosphere and keeps our atmosphere warm, this is called green house effect.