Answer:
The primary purpose was always to protect the Chinese Empire from the Mongolians and other invaders. Most of the current Great Wall we see today was built in the Ming Dynasty (1368-1644) and is approximately 6000km long.
Step-by-step explanation: