Greenhouse gases are a group of compounds that can trap heat in the atmosphere, acting as a thermal blanket for the planet.