In a process lasting thousands of years, glaciers form slowly in areas where the snowfall exceeds any melting that happens in warm weather.
The weight of the fallen snow compresses the whole thing into a mass of ice.