built by the Ming dynasty (1368–1644).In addition to defence, other purposes of the Great Wall include border control, permitting the