how does a mountain range in the path of prebailing winds affect precipitation on either side of the mountain range?

how does a mountain range in the path of prebailing winds affect precipitation on either side of the mountain range?