Nomadic empire
The Xiongnu were a confederation of nomadic tribes from Central Asia with a ruling class of unknown origin and other subjugated tribes. They lived on the Mongolian Plateau between the 3rd century BC and the 460s AD, their territories including modern day Mongolia, southern Siberia, western Manchuria, and the modern Chinese provinces of Inner Mongolia, Gansu, and Xinjiang. The Xiongnu was the first unified empire of nomadic peoples. Relations between early Chinese dynasties and the Xiongnu were complicated and included military conflict, exchanges of tribute and trade, and marriage treaties. When Emperor Qin Shihuang drove them away from the south of the Yellow River, he built the famous Great Wall to prevent the Xiongnu from coming back.
Han–Xiongnu War
During the Warring States period, the Qin, Zhao, and Yan states conquered various nomadic territories inhabited by the Xiongnu and other Hu peoples. They strengthen their new frontiers with elongated wall fortifications. By 221 BC, the Qin ended the chaotic Eastern Zhou period by conquering all other states and unifying the entire nation. In 215 BC, Qin Shi Huang ordered General Meng Tian to set out against the Xiongnu tribes, situated in the Ordos region, and establish a frontier region at the Ordos Loop. Believing that the Xiongnu were a possible threat, the emperor launched a pre-emptive strike against the Xiongnu with the intention to expand his empire. Later that year (215 BC), General Meng Tian succeeded in defeating the Xiongnu and driving them from the Ordos region, seizing their territory as result. After the catastrophic defeat at the hands of Meng, Touman Chanyu and his followers fled far into the Mongolian Plateau. Fusu (Prince of Qin) and General Meng Tian were stationed at a garrison in Suide and soon began with the construction of the walled defenses, connecting it with the old walls built by Qin, Yan and Zhao states. The fortified walls ran from Liaodong to Lintao, thus enclosing the conquered Ordos region, safeguarding the Qin empire against the Xiongnu and other northern nomadic people. Due to the northward expansion, the threat that the Qin empire posed to the Xiongnu ultimately led to the state formation of the many tribes towards a confederacy.