In the Western Han Dynasty, the Huns became more powerful. The Han court started to build more walls on a larger scale in order to consolidate the frontier. In the west, the wall along the Hexi corridor, Yumenguan Pass, and Yangguan Pass was built. In the north, Yanmenguan Pass and Niangziguan Pass in Shanxi were set up. Many more sections of the wall extended to Yinshan Mountain and half of the ancient Silk Road was along the Han's wall.