Treasure and gunpowder: Zheng He and China’s forgotten naval wars

An in-depth analysis of how, for a brief and fleeting moment, Zheng He's Treasure Fleet brought China to the brink of maritime dominance.
12 October, 2026
Treasure Fleet at sea
Artist's illustration of Zheng He's fleet. Image:

When the Portuguese expanded into the Indian Ocean around 1500, they spent a century fighting the Mamluks and Ottomans for control of it. Yet had they arrived 80 years sooner, it’s possible they would have clashed with a different superpower altogether: Ming China.

This is the story of Zheng He and the Treasure Fleet – a brief moment in time when China roamed the waves and threatened to become the world’s dominant naval power.

The raid

Two thousand Chinese soldiers crouch outside the walls of a foreign capital. It is night, somewhere in the southwest of Sri Lanka, in the year 1411. They are outnumbered, deep inland, and waiting for a signal. Their commander is Zheng He, the Muslim eunuch admiral of the Ming dynasty, leading the third of his seven great imperial voyages.

Then it comes: one shot from a huo-p’ao, a gunpowder signal gun. It’s the earliest known record of a gunshot on Sri Lankan soil.

The soldiers charge the walls. They break through. They reach the inner court and seize the man who rules there: Vīra Alakēśvara, a strongman who controls Kotte in practice, if not by uncontested royal right. They take his wife, his children, and his officials, then fight their way back to the fleet against a pursuing Sinhalese army.

The captives are carried to Nanjing, the Ming capital, where the Yongle Emperor pardons Alakēśvara, picks his replacement, and attempts to insert the Ming court into Sri Lanka’s politics.

Today, this conflict is known as the Ming-Kotte War. Official Ming records cast it as unfortunate but unavoidable. Alakēśvara had been hostile to the imperial fleet since it first appeared on the Sinhalese coast in 1405. He had plotted against Zheng He’s soldiers and tried to extract gifts and tribute by force. He had to be removed. The emperor’s justice had been done.

Modern popular conceptions of Zheng He’s expeditions and the famous Chinese Treasure Fleet cluster around a few key ideas. His seven voyages between 1405 and 1433 were large in scale. He commanded the treasure fleet, one of the grandest fleets of the medieval world. He crossed the Indian Ocean and back, bringing silk and porcelain and exchanging imperial gifts. And unlike later European powers, he did not engage in colonial exploitation.

These ideas are largely true, but this story is incomplete. Zheng He did carry treasure, but he also brought soldiers, guns, and the authority to remove rulers.

A Seated Portrait of Ming Emperor Taizu (cropped), c. 1377. Image: Public domain

The usurper

More than 40 years before Zheng He’s signal gun fired in Sri Lanka, a former peasant rebel drove the Mongols out of China and founded a new dynasty. His name was Zhu Yuanzhang, though history remembers him as the Hongwu Emperor. Born into extreme poverty, Yuanzhang rose through rebellion and civil war to defeat the Yuan dynasty and proclaim the Ming in 1368.

He built his new state around military discipline, agrarian recovery, strict law, suspicion of merchants, and tight control over the coast. Officially, he banned private Chinese overseas trade outright, in a policy called the haijin, or ‘sea ban’. This was partly to starve the pirates raiding the southern coast, though in practice enforcement varied over time.

When Hongwu died in 1398, the throne was not passed to one of his sons, but instead to his grandson, the Jianwen Emperor. Jianwen was young and politically vulnerable. His advisors urged him to reduce the power of his uncles, the imperial princes who commanded major forces on the frontiers.

One of those uncles was Zhu Di, the Prince of Yan. Based in Beijing, Zhu Di was a frontier commander hardened by campaigns against the Mongols. In 1399, he rebelled. After three years of civil war, he seized Nanjing.

The palace burned, and Zhu Di became emperor under the reign name Yongle. Jianwen disappeared. Officially, he died in the fire. Unofficially, rumours that Jianwen had escaped in disguise haunted the Yongle emperor for the rest of his life.

Yongle purged officials who had served Jianwen, rewrote the record to justify his accession, and began looking for ways to make his reign look not merely successful, but chosen. For most of imperial Chinese history, that kind of legitimisation campaign would have focused inward.

Looking outwards

China was a continental power. Its primary threat was the steppe to the north. Its ceremonial heart lay among the imperial altars and the auspicious mountains of the interior. The sea, on the other hand, was for fishermen and devious merchants or pirates.

Yet the capital of the early Ming was Nanjing, literally ‘Southern Capital’. For almost all of China’s history, political power remained in the north. However, Hongwu had broken that pattern, choosing Nanjing as the Ming’s first capital: a river city perched on the lower Yangtze, just before it opened toward the sea. And Hongwu had already constructed extensive shipyards. South-East Asia looked closer to China than ever before. And so the Yongle emperor’s eye drifted south.

Between 1403 and 1424, Yongle launched an overseas-projection program on a scale the Ming never attempted before or after. It restored and enlarged the tribute system. It moved to control maritime chokepoints between China and the Indian Ocean trade network. It accumulated Buddhist sacred capital. It brought foreign rulers and envoys to Nanjing. It made the world visibly come to the usurper’s court, sometimes in spectacular ways.

In 1414, for example, Saifuddin Hamza Shah, Sultan of Bengal, sent a giraffe to the Ming court. The animal was a re-gift, originally from East Africa. The Ming court identified it as a qilin, the mythical horned beast said to appear only under a sage ruler.

Giraffe being led by man
The pet giraffe of the Sultan of Bengal, taken to China in the thirteenth year of Yongle (1415). Image: Public domain

For Yongle, the giraffe was cosmic politics. The court painter Shen Du commemorated the giraffe in an imperial portrait. Officials composed poems celebrating the apparition – heaven approved the man on the throne.

More giraffes followed: one from Malindi in 1415, another from Aden in 1419. Each was identified as further confirmation that Yongle’s mandate was real. This is the program Zheng He’s voyages belonged to. They were not primarily exploration. Nor were they simply a vanity campaign to display Ming wealth.

They were the largest maritime arm of a wider Yongle project: legitimacy, tribute, sacred spectacle, and imperial intimidation all at once. The same system that handed out gifts and searched for Buddhist relics also dispatched soldiers.

Not Just Zheng He

Two years before Zheng He’s first voyage, another envoy named Yin Qing had already crossed the South China Sea, visited what is now modern day Malaysia and India, and returned to the Ming court bringing foreign envoys with him. This mission began in 1403, just a year after Yongle took the throne.

The Ming already had a maritime state apparatus. Hongwu had maintained fleets since the dynasty’s founding. Ming ships patrolled the coast against pirates, moved men and grain through the empire’s waterways, and drew on imperial shipyards at Nanjing. Yongle’s contribution was not creating the navy. It was scaling it up and pointing it outward.

Nor was Zheng He the only eunuch commander. Hou Xian traveled almost as far, carrying Yongle’s invitation to a Tibetan religious leader and deepening the court’s ties with Bengal. While most other envoys sailed to the “Western Ocean” (the Indian Ocean), Zhang Qian was dispatched to the ‘Eastern Ocean’, off to the islands of southeast Asia. The Eastern Ocean program brought many foreign rulers from these lands to pay tribute to Yongle in person.

You can read about why the Ming Dynasty preferred eunuch commanders on our Patreon page, here: https://www.patreon.com/TheAgeofExploration/posts/safe-bet-why-to-172152443

The popular framing presents Zheng He as a solitary protagonist. The Ming records show something larger around him: a state initiative with multiple commanders, multiple destinations, and objectives, running across the Yongle reign and into the reigns of his successors.

Gold ingo Prine Zhuang
A gold ingot excavated from the tomb of Prince Zhuang of Liang. An inscription states the ingot was made from gold purchased at the Western Ocean in the 17th year of the Yongle reign (1419). Source: Hubei Provincial Museum

The maritime order

Yongle’s outward-projection program was not a European-style colonial empire like the one Portugal would build in the region just a few generations later. There were no settler colonies or imperial governors ruling foreign populations. It is also true Ming did not arrive at a harbour, plant a flag, and proclaim the territory annexed to China. At the same time, Zheng He’s voyages were about more than mere trade, diplomacy or even exploration.

It was a project built from specific institutional materials: ships, envoys, seals, titles, tribute permits, promises of Ming recognition, sacred objects, elaborate ceremonies, foreign embassies brought to Nanjing, threats, and occasional bursts of military violence. Some historians call it Pax Ming. 

Whatever the name, the project had different pieces. One such piece was a pair of imperial supply bases called guanchang, or official depots. The Mao Kun map, a Ming navigation chart, marks guanchang at two sites: Malacca, on the Malay peninsula, and Samudera, in northern Sumatra. These guanchang were more than mere warehouses.

Ma Huan, the Chinese Muslim interpreter who sailed on Zheng He’s later voyages, describes the Malacca compound in detail. When the treasure ships arrived, soldiers erected stockades “like a city-wall”, with four gates, watch-drum towers, night patrols, an inner enclosure, storehouses and granaries.

This was a logistics-and-security installation on foreign soil, secured by Ming soldiers under Ming command. These compounds were probably only fully staffed when the fleets were docked. And local rulers still held sovereignty, at least in theory. The Ming presence existed by permission. But permission meant something different when the visitor commanded the largest fleet in the world, complete with an onboard army of thousands.

At Old Port, near Palembang in southern Sumatra, the Ming established more than a guanchang. It created a frontier office.

A ‘Pacification Superintendency’, or xuanwei si, was an existing Ming administrative category used for non-Han frontier polities. A local ruler received an imperial title, an imperial seal, and a place in the Ming bureaucratic order. In return, he sent tribute, hosted envoys, and could be called on for service.

A superintendency was not ‘China’ in the official sense. But it did place the polity in a middle ground between foreign tributary and direct imperial administration. On the land frontier, becoming a Pacification Superintendency sometimes led to absorption: over time, some native offices were converted into regular Chinese prefectures and counties.

In 1407, after Zheng He defeated the maritime warlord Chen Zuyi at Palembang, the Yongle court applied this category overseas for the first time. The new Pacification Superintendent at Old Port was Shi Jinqing, a local Chinese Muslim merchant who had emerged as a leader of the Palembang community.

Old Port already had a substantial overseas Chinese population. The Ming did not bring them. They had been there for decades, sometimes longer. What the Yongle court did was place an imperial title over an existing diaspora community, then call the arrangement a Ming administrative office. This arrangement was unusual. The Ming and later Qing both treated unauthorized overseas Chinese communities with suspicion, for they had deserted the realm. As such, they were rarely recognized in an official capacity. Old Port was an exception.

But the landscape was complex. Old Port was also claimed by Majapahit, the dominant Javanese power in maritime Southeast Asia; even the Ming’s own records sometimes call it ‘Java’s Old Port Pacification Superintendency;. Shi Jinqing held a Ming office, but the place he administered remained nominally under Javanese suzerainty.

Battles and bloodless victories

Throughout a 30-year run of voyages, Zheng He’s fleet was involved in three significant military campaigns. The Ming records describe them as defensive responses to hostile foreign rulers. But there’s a pattern: remove a problem ruler at a strategic node and install a Ming-aligned alternative.

The first was Palembang (southern Sumatra), 1407. This is the Old Port story. Chen Zuyi, a Chinese fugitive turned warlord, was preying on shipping near the Malacca Strait. When Zheng He arrived, he appeared to surrender. Shi Jinqing warned the fleet that the surrender was a feint. Zheng He attacked. Chen Zuyi was taken alive to Nanjing and executed. Shi Jinqing received the title of Pacification Superintendent.

The second was Sri Lanka, 1410 or 1411. Our opening scene. Zheng He’s troops captured Vīra Alakēśvara, took his family and officials to Nanjing. They were pardoned and the navy was dispatched to deliver the Ming-approved replacement. The same voyage had also carried the Galle Trilingual Inscription, a stone tablet composed in Nanjing and addressed in Chinese to the Buddha, in Tamil to a Hindu deity, and in Persian to “the Light of Islam.” Gift and gun belonged to the same mission.

The third was Samudera (northern Sumatra), 1415. Ming intervention backed Sultan Iskandar against a rival claimant named Suganla. The operation did not come out of nowhere. Chinese envoys visited frequently. Zheng He’s voyages had called there repeatedly. The Ming had a guanchang near the capital. In 1414, Zheng He had presented the sultan with the Cakra Donya bell, a bronze bell cast in Nanjing and inscribed in Chinese and Arabic. One year later, the fleet defeated Suganla, captured him, and sent him to Nanjing for execution.

Yet while battles were sometimes frequent, the same system could sometimes work without combat. Malacca was a small port on the Malay peninsula, harassed by Siam (modern-day Thailand). Ming recognition helped protect it: the Yongle court granted its ruler, Parameswara, an imperial mandate and seal in 1405, and Parameswara himself sailed to Nanjing in 1411 with a large retinue. When Siam resumed its pressure, he complained to Yongle, and in 1419 Zheng He delivered an imperial edict to the Siamese ruler, scolding him and demanding he stop. Siam complied. The pressure worked, and war was averted.

The same pattern appears in Bengal. In 1420, Bengal complained that the Sultanate of Jaunpur had repeatedly attacked its territory. Yongle sent an envoy named Hou Xian with imperial instructions, silk, money, and gifts. He brought no army. The message put Ming pressure behind Bengal’s complaint, and Jaunpur backed off. This was the same instrument in a softer register. The court that sent gifts also sent threats. The court that conferred titles could remove rulers.

The land empire behind the fleet

The voyages were the photogenic part of Yongle’s outward projection. They were not the largest part. At its core, Ming China remained primarily a land power. While Zheng He sailed, the Ming was pushing south by land, dispatched by the unusually expansionist Yongle emperor. In 1406, two Ming armies invaded Đại Việt, today northern Vietnam.

By 1407, the country had been annexed as Jiaozhi, the Ming’s 14th province. In the first year of occupation, thousands of Vietnamese artisans were deported to Nanjing, including gun founders. For twenty-one years, the Ming held Jiaozhi against near-continuous guerrilla insurgency. In 1428, four years after Yongle’s death, they were driven out.

At the same time, the Ming was expanding beyond Yunnan into the Tai-polity zone of what is now northern Burma, northern Thailand, and Laos. Local rulers received Ming titles and seals. Pacification Superintendencies were minted. Ming clerks entered their courts. Tribute was collected. Troops were levied.

Viewed in this context, Zheng He and the maritime project were not an isolated experiment. Instead, they represented one theatre in a wider southern expansion. Yet in the end, most of that expansion failed.

North Vietnam was lost. Most of the Tai polities slipped Ming control over the next two centuries. The durable success was not Yongle’s spectacular expansion, but the slower absorption of the inner Yunnan frontier, a holdout of Mongol-aligned rebels Hongwu had conquered a generation before him and later dynasties continued to integrate. As for Old Port, it shared no land border with the Ming. Once the fleets stopped coming, the maritime offices and depots that sustained them quickly faded into memory.

Tomb in graveyard Zheng He
The empty tomb of Zheng He in Nanjing. Image: Peter Pang, public domain

End of an era

Yongle died in 1424. His son, the Hongxi Emperor, immediately suspended the maritime program. Hongxi reigned less than a year. His son, the Xuande Emperor, ordered one final voyage from 1431 to 1433. By the time it returned, Zheng He was dead. The reasons for retreat were not mysterious. The voyages were expensive. The civil bureaucracy disliked the eunuch-led program, and the northern frontier demanded attention. In short, Jiaozhi had become a costly disaster. And the whole project sat uneasily beside the late emperor Hongwu’s instructions.

Hongwu had written a foundational text, the Huang-Ming Zuxun, the Ancestral Injunctions of the Ming. It named 15 foreign polities the Ming was never to conquer, including Annam (northern Vietnam), Java, and Palembang. Yongle had violated these wishes. After his death, officials who wanted the program gone had a dynastic constitution to point to.

Already by the later days of Yongle’s reign, more and more attention had returned to the north. The Mongols, though driven out from China generations earlier, seemed to be gathering newfound strength. In 1421, he officially moved China’s capital from Nanjing back to Beijing. It was time to turn the Ming’s focus back to the traditional threat.

So the program ended. The guanchang fell into disuse. Old Port was forgotten. The last official mention of the Pacification Superintendency dates to 1430, three years before Zheng He’s seventh and final voyage returned. After that, silence. When Majapahit reabsorbed Old Port around 1440, the Ming court appears to make no record of the event. The institution was so obscure in imperial memory that its dismantling went not only unchallenged, but unnoticed.

Sri Lanka’s fate was similar. After the original ruler’s ousting, the Ming had attempted to install a man named Yebanaina as “King of Ceylon” in 1412. He was murdered, by some accounts, the very night he returned to the island in 1414. It’s unclear if the Ming court ever even learned of this. There’s no known record of his death and no known attempt to install a successor. Even in its prime, the Ming government seemed disinterested in managing Yongle’s maritime project.

But Ming engagement with Southeast Asia continued regardless; envoys kept arriving throughout the fifteenth century. The Ming did not abandon the region. It simply discarded its hegemonic arm and withdrew from overseas interventionism

Later memory simplified the rest. Zheng He’s voyages became nothing but peaceful exchange, gifts, and friendship. No conquest, no war. The battles at Palembang, Kotte, and Samudera fell to the wayside. The Pacification Superintendency at Old Port disappeared. The Annam occupation became a different topic in a different textbook. The Cakra Donya bell stayed in Sumatra. The Galle inscription stayed in Sri Lanka. And the story connecting them faded away.


A note on the count: Zheng He led at least eight voyages. The conventional “seven” refers to the major treasure-fleet expeditions and leaves out shorter diplomatic missions.

Sources and further reading:

  • Edward L. Dreyer, Zheng He: China and the Oceans in the Early Ming Dynasty (2007)
  • Tansen Sen, “Zheng He’s Military Interventions in South Asia, 1405–1433” (2019)
  • Geoff Wade, “Engaging the South: Ming China and Southeast Asia in the Fifteenth Century” (2008), and “The Zheng He Voyages: A Reassessment” (2004)
  • Ma Huan, Ying-yai Sheng-lan: The Overall Survey of the Ocean’s Shores (1433), trans. J. V. G. Mills (1970)
  • Sally K. Church, “The Giraffe of Bengal: A Medieval Encounter in Ming China” (2004)
  • Geoff Wade (trans.), Southeast Asia in the Ming Shi-lu (open access, NUS)

Sign up to receive The Age of Exploration newsletter once a fortnight.

Austen Fletcher

Austen lives and works in Arizona in the United States. Austen has a keen interest in history and is the author of the Substack Lost Futures, available here: https://lostfutures.substack.com/