D
定语从句修饰the small mountain village
that、which都可以、空也行
we visited that/which(the small mountain village)
题中只有that正确