Water vapor is responsible for the formation of clouds and precipitation. It also performs a vital role in the cooling of the atmosphere. Water vapor that is evaporated from the surface of the earth by the heat generated by the sun eventually returns in various forms of precipitation including snow or rain.