What dynasty built walls ?
Settling in the transitional area between agricultural lands and the steppe , the Khitans became semi-sedentary like their Xianbei predecessors of the Northern Wei , and started to use Chinese methods of defence .