-
A cloud is composed of millions of little droplets of water (or ice crsytals when temperature is very low) suspended in the air.
-
Hence a cloud can form, when water vapour becomes liquid, i.e. when the humid air is cooled and condenses on tiny particles.
-
There are several steps of cloud formation.

Water vapour present in air

Warm air along with water vapour rises in the atmosphere