The Great Wall of China through the Centuries
After the death of Qin Shi Huang and the fall of the Qin dynasty, much of the Great Wall fell into disrepair. After the fall of the Han dynasty (206 B.C.-220 A.D.), a series of frontier tribes seized control in northern China. The most powerful of these was the Northern Wei dynasty (386-535 A.D.), which repaired and extended the existing wall to defend against attacks from other tribes.
The Bei Qi kingdom (550–577) built or repaired more than 900 miles of wall, and the short lived but effective Sui Dynasty (581-618) repaired and extended the Great Wall of China a number of times.
With the fall of the Sui and the rise of the Tang dynasty (618-907), the Great Wall lost its importance as a fortification, as China had defeated the Tujue tribe to the north and expanded past the original frontier protected by the wall. During the Song dynasty (960-1279), the Chinese were forced to withdraw under threat from the Liao and Jin peoples to the north, who took over many areas on both sides of the Great Wall.
The powerful Yuan (Mongol) dynasty (1206-1368) established by Genghis Khan eventually controlled all of China, parts of Asia and sections of Europe. Though the Great Wall held little importance for the Mongols as a military fortification, soldiers were assigned to man the wall in order to protect merchants and caravans traveling along the profitable trade routes established during this period.