To defend off the invasions from northern invaders, Emperor Qin Shi Huang had all the walls joined up. Thus, the Great Wall came into being. ... Most of the current Great Wall we see today was built in the Ming Dynasty (1368-1644) and is approximately 6000km long.
i hope that this was what u meant