More than 2500 years ago, the emperor of the Qin dynasty decided to protect his prolific provinces of northern China from the frequent barbaric invasions, building and joining several fortresses.