It occurs when a gas changes into a liquid form. Water vapour changes into water droplets in the atmosphere creating clouds and fog.