What happens is that some parcel of air is pushed upwards by something (e.g. surface heating, wind over surface features, a cold front moving underneath). That parcel of air will cool down due to decreasing air pressure. But if that cooling down happens at a slower rate than how much cooler the surrounding air is, it will still be warmer and keep accelerate upwards more. This can repeat itself to cause rapidly rising air.
If there is a lot of moisture in that air, the effect is worse. Because at some point that air will have cooled to the condensation level where relative humidity becomes 100%, then the moisture that was in the air will condensate and form clouds. That condensation process will release latent heat, helping the rising air parcel to keep rising further and faster.
And these are exactly that kind of conditions that cause big cumulonimbus clouds to form, which are dangerous even to airliners. Around the tropics, these clouds grow much higher than in more northern or southern latitudes.
Source: The theory class for my airline transport pilot license. A meteorologist would probably tell you this info in much more scientific terms :-)
It was in front of me and I dived to get under it, passing through massive sink. Fortunately I found some ridge lift nearby and was able to make it back to safety.
Many years ago sailplane pilots flying in a contest near Marfa Texas were enjoying some strong updrafts in clear air and suddenly discovered they were in a coalescing strong tornado.
Plane condensation trails are a form of clouds.