Ordos Plateau
In Chinese accounts, the Xiongnu first appear at Ordos in the "Yizhoushu" and "Shanhaijing" during the Warring States period before it was occupied by Qin and Zhao. It is generally thought to be their homeland, however when exactly they came to occupy the region is unclear, and it might have been much earlier than traditionally thought, as suggested by archaeological finds. As the Xiongnu expanded southward into Yuezhi territory around 160 BC under their leader Modun, the Yuezhi in turn defeated the Sakas (Scythians) and pushed them away at the Issyk Kul. It is thought the Xiongnu also occupied the Ordos area during the same period, when they came in direct contact with the Chinese. From there, the Xiongnu conducted numerous devastating raids into Chinese territory (167, 158, 142, 129 BC). The Han Dynasty started to fight the Xiongnu in the 2nd century BC under emperor Han Wudi, and colonized the area of the Ordos under Shuofang commandery in 127 BC. Prior to the campaign, there were already commanderies established earlier by Qin and Zhao until they were overrun by the Xiongnu in 209 BC.
Han–Xiongnu War
Due to the many losses inflicted on the Xiongnu, rebellion soon broke out and former enslaved people rose up in arms. Around 80 BC, the Xiongnu attacked the Wusun in a punitive campaign and soon the Wusun monarch requested military support from the Han empire. In 72 BC, the joint forces of the Wusun and Han invaded the territory of the Luli King of the Right. Around 40,000 Xiongnu people and many of their livestock were captured before their city was sacked after the battle. The very next year, various tribes invaded and raided the Xiongnu territory from all fronts; Wusun from the west, Dingling from the north, and Wuhuan from the east. The Han forces had set out in five columns and invaded from the south. According to "Hanshu", this event marks the beginning of Xiongnu decline and the dismantlement of the confederation.