Some clouds form as air warms up near the Earth's surface and rises. ... That warmed air starts to rise because, when warm, it is lighter and less dense than the air around it. As it rises, its pressure and temperature drop causing water vapor to condense.
https://scied.ucar.edu/learning-zone/clouds/how-clouds-form
I hope this helped :)