The process of changing a gas to a liquid by cooling is called condensation and and it is the reverse of vaporization.
For example, during the overnight hours, the air near the ground cools below the dew point. As a result, water vapour in the atmosphere becomes saturated and condenses to form dew(liquid) on the grass.