Gases in the atmosphere, ie., carbon dioxide, nitrous oxide, and methane, trap the heat from water vapor the sun has evaporated. This can cause higher temperatures, and forms the greenhouse effect. A problem it causes is global warming, since those gasses are trapping the heat in the atmosphere, harming the ozone layer, causing more ultraviolet rays to go through, which is very harmful to humans.
Hope I helped :)