Question: what happens when an air mass is pushed up and over a mountain range?
Answer: Orographic lift

Orographic lift occurs when an air mass is forced from a low elevation to a higher elevation as it moves over rising terrain.  As the air mass gains altitude it quickly cools down adiabatically, which can raise the relative humidity to 100% and create clouds and, under the right conditions, precipitation.