Diagram of how clouds form

Credit: NOAA

As air rises it cools and decreases pressure, spreading out. Clouds form when the air cools below the dewpoint, and the air can not hold as much water vapor.