Battle of Mayi
Get Battle of Mayi essential facts below. View Videos or join the Battle of Mayi discussion. Add Battle of Mayi to your topic list for future reference or share this resource on social media.
Battle of Mayi
Battle of Mayi
Part of the Han-Xiongnu War
DateJune, 133 BC
Result Aborted by Xiongnu retreat
Xiongnu Han dynasty
Commanders and leaders
Junchen Shanyu Han Wudi
Wang Hui
Han Anguo
Li Xi
Li Guang
Gongsun He
100,000 cavalry 270,000 Han infantry at Mayi, 30,000 Han infantry at Dai Prefecture
Casualties and losses
None None, other than the capture of a low-profile outpost sentry

The Battle of Mayi (?) was an abortive ambush operation by the Han dynasty against the invading Xiongnu forces, with minimal casualties. It marked the end of de jure peace between the Han dynasty and Xiongnu. It also stimulated the use of effective cavalry forces and offensive military policies by the Han court.


Before the Battle of Mayi, there had been two main encounters between the Chinese and the Xiongnu. During the Warring States period, General Li Mu[1][circular reference] of the State of Zhao defeated the Xiongnu by luring them deep inside Zhao territory and ambushing them. With similar tactics, General Meng Tian of the Qin dynasty drove the Xiongnu north for 750 km and built the Great Wall to guard against future raids.

After the humiliating defeat of Emperor Gao by Modu Shanyu at Baideng in 200 BC, the Han dynasty was forced to resort to political appeasement in order to decrease the scale of Xiongnu hostility. However, despite the periodic gifts and heqin ("marriage alliance"), border townships and villages were still ravaged by nomads, as the prosperous Chinese lands attracted Xiongnu raids.

After seven decades of enduring the military raids, the Han dynasty had built up its strength. Emperor Wu maintained a policy of peace and appeasement early in his reign, but the court began to formulate ideas of striking a major blow against the Xiongnu. The traditional Chinese strategy was to lure the Xiongnu cavalry into Chinese territory, on terrain where the Chinese army, composed almost entirely of infantry and chariots, would be at an advantage.


In 133 BC, at the suggestion of Wang Hui, the minister of vassal affairs, Emperor Wu had his army set a trap for the Xiongnu Shanyu at the city of Mayi. A powerful local trader/smuggler, Nie Wengyi, also known as Nie Yi, deceptively claimed to Junchen Shanyu that he had killed the local magistrate and was willing to offer the city to the Xiongnu. The plan was to entice the Shanyu's forces into advancing on Mayi so that a Han force 300,000 strong, hidden around the area, could ambush them.

The plan failed, ironically, because the Han ambush was made to look too attractive. When the Shanyu took the bait and moved in for a raid on Mayi, he saw fields full of cattle but with no herdsmen. Feeling increasingly suspicious, the Shanyu ordered his men to halt their advance. Xiongnu scouts then captured a Han soldier from a local outpost, who disclosed the entire plan to the Shanyu. Shaken, the Shanyu then withdrew quickly before the Han forces could act. The Han forces were scattered at this point, unable to concentrate in time to catch the Xiongnu. Wang Hui himself, the commander of the entire Han operation, had only 30,000 troops under his direct command, too few to stop the Xiongnu from retreating to the steppe, or to defeat them. Wang hesitated and ordered the Han forces not to pursue. As a result, neither side suffered any casualties.


Back at the imperial court, Wang Hui's political enemies blamed him for the plan's failure and his reluctance to pursue the retreating Xiongnu army. He was imprisoned. While awaiting trial, he bribed the powerful prime minister, Tian Fen, Emperor Wu's uncle, in the hope of obtaining a parole. Emperor Wu still refused to spare Wang, who then committed suicide in prison.

Though border military clashes had already continued for decades between the two sides, this "battle" ended the de jure "peace" between the Han and Xiongnu. The ambush operation revealed the Han dynasty's hawkish stance, and the "marriage/gift for peace" policy was officially abandoned. For the next few years, Xiongnu would increase their border attacks, further solidifying the cause of pro-war factions and their control in the Han court.

The result of the battle made Emperor Wu realize the difficulty for Han infantry to achieve superiority against the more mobile Xiongnu cavalry. That led to a change in Han strategy and hastened the development of an effective Han cavalry. In later campaigns, the Han dynasty went from a defensive stance to an offensive strategy of launching expeditions deep into Xiongnu territory.

The failure of the Mayi operation also prompted Emperor Wu to reconsider his choice of commanders. Disappointed at the ineffectiveness of existing generals, Emperor Wu began to look for younger generations of military hopefuls capable of offensive anti-cavalry warfare. That led to the rise of famous new-generation tacticians like Wei Qing and Huo Qubing and old guard commanders like Li Guang began to fall out of favor.


  • Ban Gu et al., Hanshu. Beijing: Zhonghua Shuju, 1962. ISBN 7-101-00305-2
  • Sima Guang, comp. Zizhi Tongjian. Beijing: Zhonghua Shuju, 1956. ISBN 7-101-00183-1

  This article uses material from the Wikipedia page available here. It is released under the Creative Commons Attribution-Share-Alike License 3.0.



Music Scenes