Green house gases trap the earth and functioning as blanket. They are absorbing the heat from the atmosphere and functioning as insulator when heat is released from the earth. Hence the heat energy cannot move away to the surroundings. This results in the gradual increase of earth temperature or global warming