Xiongnu
Sinologist Edwin Pulleyblank argued that the Xiongnu were part of a Xirong group called Yiqu, who had lived in Shaanbei and had been influenced by China for centuries, before they were driven out by the Qin dynasty. Qin's campaign against the Xiongnu expanded Qin's territory at the expense of the Xiongnu. In 215 BC, Qin Shi Huang sent General Meng Tian to conquer the Xiongnu and drive them from the Ordos Loop, which he did later that year. After the catastrophic defeat at the hands of Meng Tian, the Xiongnu leader Touman was forced to flee far into the Mongolian Plateau. The Qin empire became a threat to the Xiongnu, which ultimately led to the reorganization of the many tribes into a confederacy.In 209 BC, three years before the founding of Han China, the Xiongnu were brought together in a powerful confederation under a new chanyu, Modu Chanyu. This new political unity transformed them into a more formidable state by enabling formation of larger armies and the ability to exercise better strategic coordination. The Xiongnu adopted many of the Chinese agriculture techniques such as slave labor for heavy labor, wore silk like the Chinese, and lived in Chinese-style homes. The reason for creating the confederation remains unclear. Suggestions include the need for a stronger state to deal with the Qin unification of China that resulted in a loss of the Ordos region at the hands of Meng Tian or the political crisis that overtook the Xiongnu in 215 BC when Qin armies evicted them from their pastures on the Yellow River.
Military history of the Three Kingdoms
By the time of the Three Kingdoms period the Xiongnu had already ceased to be a major power. Their last stand as a steppe empire was in 89 when Dou Xian led an army of 45,000 and decisively defeated them at the Battle of the Altai Mountains. The Xiongnu Empire was replaced by a loose confederation of disorganized Xianbei tribes, who were nonetheless highly aggressive and proved problematic to their southern neighbors. A southern branch of the Xiongnu split off from their northern neighbors in 50 AD and continued to exist as a Han puppet state in Bing Province. However, in 188 the Xiuchuge clan rebelled against their Chanyu, Qiangqu, for sending troops to aid the Han against the rebels Zhang Ju and Zhang Chun. They replaced Qiangqu with his son Yufuluo, who's hold on power was tenuous, and he was ousted over a marquis of the Xubu clan. When the marquis of Xubu died the next year an elderly king became the nominal head of state without the title of Chanyu and the Southern Xiongnu ceased to exist as a coherent entity. In 216 the Xiongnu of the Ordos were settled but the region remained outside the jurisdiction of Cao Wei's administration.