Liquefaction of gases is done by compressing gas at the temperature less than at its critical temperature.
Critical temperature: it is the highest temperature at which a substance can exist as liquid.
Application of external pressure on gases, causes the particles to come closer and to form liquid. The particles in liquid are more closely packed than in gases.
Similarly decrease of temperature of the gas, slows down the random movement of gas particles, resulting to condense as liquid..
Here water vapours are turned into liquid state i.e. water by decreasing temperature.