Clouds and fog consist of water droplets (or ice crystals) surrounded by vapor-saturated air (required because if the air inside the cloud is subsaturated, the droplets/crystals will evaporate).

In order to saturate or supersaturate the air and produce condensates, the temperature is reduced to the dew point temperature through some sort of cooling process.