After Emperor Qin Shi Huang unified the central plain and set up the Qin Dynasty the Huns, or Xiongnu, grew strong and often ran across the northern border to rob the people, so the emperor directed that the existing walls of different states be linked to block them.