Greenhouse gases, or GHGs, are compound gases that trap heat or longwave radiation in the atmosphere. Their presence in the atmosphere makes the Earth’s surface warmer. Sunlight or shortwave radiation easily passes through these gases and the atmosphere. This radiation is absorbed by the surface of the earth and released as heat or longwave radiation.