Around 220 b.c., qin shi huang, the first emperor of a unified china under the qin dynasty, ordered that earlier fortifications between states be removed and a number of existing walls along the northern border be joined into a single system that would extend for more than 10,000 li (a li is about one-third of a mile) ..