Historically, the Great Wall of China was built to fortify China’s northern border. The Great Wall has been the site of multiple battles and skirmishes between the Chinese and various peoples across history, including the Xiongnu during the Qin dynasty, the Khitans during the Song dynasty, and the Mongols during the Ming dynasty.