Xiongnu
Full-scale war broke out in autumn 129 BC, when 40,000 Chinese cavalry made a surprise attack on the Xiongnu at the border markets. In 127 BC, the Han general Wei Qing retook the Ordos. In 121 BC, the Xiongnu suffered another setback when Huo Qubing led a force of light cavalry westward out of Longxi and within six days fought his way through five Xiongnu kingdoms. The Xiongnu Hunye king was forced to surrender with 40,000 men. In 119 BC both Huo and Wei, each leading 50,000 cavalrymen and 100,000 footsoldiers (in order to keep up with the mobility of the Xiongnu, many of the non-cavalry Han soldiers were mobile infantrymen who traveled on horseback but fought on foot), and advancing along different routes, forced the "chanyu" and his court to flee north of the Gobi Desert. Major logistical difficulties limited the duration and long-term continuation of these campaigns. According to the analysis of Yan You (嚴尤), the difficulties were twofold. Firstly there was the problem of supplying food across long distances. Secondly, the weather in the northern Xiongnu lands was difficult for Han soldiers, who could never carry enough fuel. According to official reports, the Xiongnu lost 80,000 to 90,000 men, and out of the 140,000 horses the Han forces had brought into the desert, fewer than 30,000 returned to China.
Han–Xiongnu War
In 89 AD, General Dou Xian led a Han expedition against the Northern Xiongnu. The army advanced from Jilu, Manyi, and Guyang in three great columns. In the summer of 89, the forces—comprising a total of 40,000 troops—assembled at Zhuoye Mountain. Near the end of the campaign, Dou's forces chased the Northern Chanyu into the Altai Mountains, killing 13,000 Xiongnu and accepting the surrender of 200,000 Xiongnu from 81 tribes. A light cavalry of 2000 was sent towards the Xiongnu at Hami, capturing the region from them. General Dou Xian marched with his troops in a triumphal progress to the heartland of the Northern Xiongnu's territory and engraved an inscription commemorating the victory on Mount Yanran, before returning to Han. The Han victory in the campaign of 89 AD resulted in the destruction of the Xiongnu state. In 2017, a joint Sino-Mongolian archaeological expedition rediscovered the Inscription of Yanran in the Khangai Mountains of central Mongolia.