As the gas is cooled, it will make a phase transition from gas into liquid, and upon further cooling from liquid to solid (ie. freezing). Some gases, such as carbon dioxide, skip the liquid phase altogether and go directly from gas to solid.
7.2m questions
9.5m answers