Clouds form through condensation which requires saturated air. Air cools adiabatically when it rises and expands. There are four main mechanisms that can lift air and cause it to rise: orographic lifting from air flowing over mountains, frontal wedging at boundaries between air masses, convergence when air flows together, and localized convective lifting. The stability of the air determines whether it will rise or remain in its original position, and influences the type of clouds and weather that form.