The spiritual function of fierce terrain (in the apophatic tradition) is to bring us to the end of ourselves, to the abandonment of language and the relinquishment of ego. A vast expanse of jagged stone, desert sand, and towering thunderheads has a way of challenging all the mental constructs in which we are tempted to take comfort and pride, thinking we have captured the divine. The things that ignore us save us in the end.
We may encounter many defeats, but we must not be defeated. It may even be necessary to encounter the defeat, so that we can know who we are. So that we can see, oh, that happened, and I rose. I did get knocked down flat in front of the whole world, and I rose.