The Mayi ambush is the largest battle of the Han–Xiongnu wars that was never fought. In 133 BC the Han put three hundred thousand men in hiding around a frontier town. The chanyu rode away before a single arrow was loosed.[1] The ambush ended the heqin settlement, and the war that followed lasted sixty years.[1]

The plan

The Shiji is explicit that the Han broke the peace. The new emperor had confirmed the treaty, treated the Xiongnu generously, opened the frontier markets and supplied them well. From the chanyu down, the Xiongnu were friendly and came and went below the wall.[1] A man of Mayi named Nie Wengyi, who traded contraband across the line, was used to offer the chanyu the town of Mayi for sale. Junchen believed him and wanted the goods of the town. He came into the Wuzhou pass with a hundred thousand horse. Three hundred thousand Han troops lay in ambush around Mayi under the censor-in-chief Han Anguo, with four generals under him.[1][2][3] To make the offer credible, Nie Wengyi hung the head of a condemned criminal on the wall of Mayi as a sign that the governor was dead. A letter then told the chanyu that the governor of Mayi was dead and that he could come at once.[4][5] Emperor Wu may have planned the ambush to free himself from the payments to the Xiongnu. The exchange had been one-sided since the first treaty, and Wu was distressed by the growing demands for grain, silk and cash.[6]

The withdrawal

Map of East Asia in 133 BC: the Xiongnu under Junchen with the Ordos and the Hexi corridor, their subjects from the Tarim to the Wuhuan, the Yuezhi on the Ili, the Han, and the march of the chanyu towards Mayi, where three hundred thousand Han lie in ambush, and his withdrawal
133 BC: The Han hide three hundred thousand men around the frontier town of Mayi and offer the town to the chanyu Junchen. He comes over the border with a hundred thousand horse, sees the cattle grazing unattended a hundred li short of the town, learns of the ambush from a captured officer and turns back. The heqin settlement ends, and sixty years of open war begin. Modern map; the road of the chanyu is drawn, and the borders in the steppe are approximate.
© Emre-E Yavuz 2026

A hundred li short of the town, the chanyu saw livestock spread over the country with nobody herding it. He thought it strange. Instead of going on, he attacked a watchtower. In the tower was a frontier officer of Yanmen who knew where the Han army lay. The chanyu took him and meant to kill him, but the officer told him what was waiting. Junchen said that he had suspected it all along, and pulled his army out.[1] Riding away, he said that taking the officer had been the work of Heaven, and that Heaven had made him speak. He gave the man the title Heavenly King.[1][7]

The general Wang Hui had been detailed to come out of Dai and strike the Xiongnu baggage. He heard that the chanyu had turned back and that his force was large. He did not move. The Han executed him for having devised the plan and then failed to advance.[1][8]

Consequences

From that point, the Shiji says, the Xiongnu broke off the heqin and attacked the passes on the roads. They raided the Han frontier past counting.[1] One thing did not change. The Xiongnu still wanted the markets and Han goods, and the Han kept the markets open in order to hold them by that.[1][9] On a modern account, the Han often trapped the Xiongnu by the trick of opening a market.[4] Five years later the first of the Han offensives went out: four generals with ten thousand horse each. One of them reached Longcheng, where the Xiongnu held their great assembly of the fifth month.[1]

References

  1. ^ a b c d e f g h i j Shiji, juan 110
  2. ^ Ögel 2015, p. 393–398
  3. ^ Jagchid 1989, p. 28–29
  4. ^ a b Jagchid 1989, p. 29
  5. ^ Ögel 2015, p. 397–398
  6. ^ Jagchid 1989, p. 28
  7. ^ Ögel 2015, p. 399
  8. ^ Ögel 2015, p. 399–400
  9. ^ Ögel 2015, p. 393

Sources

Literature

  • Peter B. Golden, An Introduction to the History of the Turkic Peoples (1992)
  • Emre-E. Yavuz, The Gokturk Empire: 2nd Edition (2025)
  • Bahaeddin Ögel, Büyük Hun İmparatorluğu Tarihi I (2015)
  • Sechin Jagchid; Van Jay Symons, Peace, War, and Trade Along the Great Wall. Nomadic-Chinese Interaction through Two Millennia (1989)

Cite this article

Yavuz, Emre-E. “Mayi ambush.” Turkic Atlas, revised 8 November 2026. https://turkicatlas.org/events/mayi-ambush-133-bc/

Last revised: 8 November 2026