What was The Great Wall of China use for?

the great wall of china was use for barriors in the old times.it is also used for transportation when men in the army had to move to different sections.