First, the sun must evaporate water. This attaches to a condensation nuclei and condenses in the cloud. Condensation occurs when warm air masses cool quickly. The two necessary conditions are for the air to be moist and warm (primarily found in low pressure zones) and for there to be dust/ other condensation nuclei in the air