Greenhouse gases reflect heat radiation that the Earth emits, and stop it from being lost into space. This makes the Earth hotter than it would be without greenhouse gases. This is called the "greenhouse effect".