As warm air moves up a mountain range, the air pressure decreases which allows air molecules to expand. The molecules aren’t as condensed and condensed molecules generate heat. As the air expands and cools it can let off water vapor which can form clouds and fall in the form of rain or snow