The higher up a mountain you go, the colder it gets compared to the valley below.
In fact, it gets, on average, 5 degrees Celsius colder for each 1000m you gain in height.
This is why it is almost always below freezing on the tops of the world's tallest mountains - and why they are snowcapped.