What dynasty built walls ?
With the Sixteen Prefectures , the Khitan now possessed all the passes and fortifications that controlled access to the plains of northern China , including the main Great Wall line .