张保仔
Historical photograph of 张保仔
Image creditsRay in Manila · CC BY 2.0Image source

Historical figure

Zhang Baozai (张保仔)

张保仔

Zhang Baozai (张保仔, 1783–1822), originally named Zhang Bao and later renamed Zhang Bao, was a famous pirate admiral of the southern seas during the Jiaqing reign of the Qing dynasty who subsequently surrendered to the imperial government and served as a high-ranking naval vice commander. Born into an impoverished Tanka fishing family in Jiangmen, Guangdong, Zhang was captured at the age of fifteen by the Red Flag Fleet pirate…

Era not stated

PROFILE

Zhang Baozai (张保仔, 1783–1822), originally named Zhang Bao and later renamed Zhang Bao, was a famous pirate admiral of the southern seas during the Jiaqing reign of the Qing dynasty who subsequently surrendered to the imperial government and served as a high-ranking naval vice commander. Born into an impoverished Tanka fishing family in Jiangmen, Guangdong, Zhang was captured at the age of fifteen by the Red Flag Fleet pirate confederacy led by Zheng Yi. Impressed by the youth's intelligence and dexterity, Zheng Yi adopted him as a foster son. Following Zheng Yi's death in a typhoon in 1807, Zhang assisted his widow Shi (known historically as Zheng Yisao) in consolidating power, emerging as the undisputed military commander of the Red Flag Fleet. At its zenith, Zhang's maritime confederation commanded over seventy thousand pirate fighters and hundreds of heavily armed junks, dominating the Pearl River Estuary and South China Sea while repeatedly repulsing Qing provincial navies and killing brigade generals Lin Guoliang and Xu Tinggui. In 1809, Viceroy of Liangguang Bai Ling enforced a maritime blockade and coordinated an allied encirclement with Portuguese naval forces off Chek Lap Kok. Recognizing that the pirate way of life was unsustainable, Zhang formally surrendered in April 1810 alongside sixteen thousand followers and over two hundred vessels. Bestowed military commissions by the Qing throne, Zhang demonstrated loyalty by hunting down rival pirate fleets and capturing the rebel admiral Wushi Er, eventually ascending to the rank of Vice Commander stationed at the Penghu archipelago, where he died in office in 1822 at age forty.

Aliases
Zhang Baozai (张保仔), Zhang Bao (张宝)
Native Place
Jiangmen, Xinhui County, Guangzhou Prefecture, Guangdong
Date of Birth
1783
Date of Death
1822
Age at Death
40
Highest Office
Vice Commander of Min'an Brigade, Fujian, and Vice Commander of Penghu Brigade
Major Offices
Squad Leader, Defense Command Major, Guerrilla Commander, Vice Commander of Min'an, Vice Commander of Penghu
Historical Identity
Prominent South China Sea pirate leader of the Jiaqing era, supreme commander of the Red Flag Fleet, later Qing imperial naval vice commander

LIFE TIMELINE

Birth in Guangdong

Born into an impoverished Tanka boat-dwelling family in Jiangmen, Xinhui County, acquiring deep maritime knowledge from childhood.

Capture by Pirates

Abducted at sea by the Red Flag Fleet under Zheng Yi while fishing with his father; spared and taken as Zheng Yi's adopted son.

Rise to Leadership

Zheng Yi perished in a sudden typhoon; Zhang and Zheng Yisao assumed joint control over the Red Flag Fleet.

Victories Over Imperial Fleets

Laid an ambush in the Pearl River Estuary that destroyed the provincial fleet, killing Vice Commander Lin Guoliang and forcing General Xu Tinggui to commit suicide.

Breakout at Chek Lap Kok

Encircled for nine days off Lantau Island by combined Qing provincial and Macao Portuguese naval squadrons, executing a daring breakout using shifting wind currents.

Seeking Submission

Following the defection of the Black Flag Fleet under Guo Podai and Bai Ling's naval blockade, initiated secret negotiations for surrender.

Surrender at Furongsha

Formally surrendered with sixteen thousand fighters and 270 armed vessels to Viceroy Bai Ling at Xiangshan, receiving an imperial military commission.

Elimination of the Blue Flags

Led vanguard imperial squadrons to crush the recalcitrant Blue Flag Fleet off the Leizhou Peninsula, personally capturing pirate leader Wushi Er.

Matrimony and Duty

Formally wedded Shi (Zheng Yisao) with imperial sanction, changing his personal name to Zhang Bao and directing coastal anti-piracy operations.

Promoted to Vice Commander

Elevated to Vice Commander of the Min'an Brigade in Fujian and appointed to command the naval bastion in the Penghu Islands.

Career Plateau

Imperial Censor Lin Zexu memorialized warning against former pirate commanders, prompting the throne to freeze further promotions.

Death in Penghu

Passed away from illness at his official headquarters in Penghu at the age of forty.

Relationship graph

BIOGRAPHY

Biography

Coastal Origins and Abduction into Piracy

Zhang Baozai was born into a destitute family of Tanka fisherfolk in Jiangmen, Xinhui County, Guangdong Province. Throughout the Ming and Qing dynasties, the boat-dwelling Tanka population endured severe social marginalization and were forbidden from settling permanently on coastal land. In the late Qianlong and early Jiaqing eras, as maritime trade restrictions and economic distress intensified, thousands of displaced boatmen banded together along the Pearl River Estuary, aligning with pirate clans to form formidable maritime confederacies.

In 1798, at the age of fifteen, Zhang accompanied his father on a fishing voyage into the outer shoals of the estuary. Their small craft was overtaken and boarded by the Red Flag Fleet, the largest pirate formation operating in the region. The fleet's supreme leader, Zheng Yi, was struck by the boy's sharp intellect, physical agility, and fluent speech. Rather than executing him or demanding ransom, Zheng Yi kept him as a personal cabin attendant and addressed him affectionately as Baozai. Zhang demonstrated remarkable aptitudes for navigation, sails, coastal currents, and shipboard artillery, rapidly gaining his foster father's confidence and becoming an officer within the fleet.

Supreme Command of the Red Flag Fleet

In October 1807, while conducting maritime raids, Zheng Yi was swept overboard by a sudden typhoon and drowned. The sudden demise of the grand confederate leader threatened to fracture the pirate alliance. Zheng Yi's widow, Madam Shi (popularly known as Zheng Yisao), moved decisively to retain authority by forging an intimate operational partnership with Zhang Baozai. Backed by veteran captains, Zhang assumed operational field command of the Red Flag Fleet, transforming it into an disciplined maritime fighting force.

To govern the confederation, Zhang and Zheng Yisao instituted a strict maritime code. Summary execution was mandated for any pirate who looted farming villages without authorization, violated captive women, or concealed plunder before division. Deserters suffered ear mutilation. Furthermore, Zhang made clever use of coastal folk religion, convening council meetings on the fleet's flagship temple vessel and consulting Daoist diviners to validate operational maneuvers. Under this disciplined structure, the Red Flag Fleet expanded to over seventy thousand fighters, commanding a thousand heavily armed junks equipped with modern European cannons acquired from foreign merchantmen.

Between 1808 and 1809, the Qing court launched several coordinated naval offensives to eradicate the fleet. In successive battles, Zhang outmaneuvered provincial admirals. At the battle of Kaizhou, he ambushed and killed Humen Vice Commander Lin Guoliang. At Ananghai, he shattered Commander Lin Fa's squadron. In the Weijiamen Channel, he ambushed Guangdong Left Wing General Xu Tinggui, who committed suicide after his fleet was captured. When Provincial Naval Commander Sun Chuanmou was routed at Aokou, the Red Flag Fleet established near-total mastery over the waters of the Pearl River Delta.

Blockade, Breakout, and the Path to Amnesty

In late 1809, the Qing throne appointed the resolute administrator Bai Ling as Viceroy of Liangguang. Rejecting ineffective naval pursuits, Bai Ling instituted an embargo on coastal shipping, strictly forbidding coastal villagers from supplying provisions, fresh water, or gunpowder to the pirates. At the same time, coastal gentry were mobilized to erect fortified earthworks along river inlets. Deprived of inland provisioning, Zhang's vast armada faced severe supply shortages. Desperate incursions into the inland waterways of Xinhui and Kaiping were repulsed with heavy losses by local militias.

In November 1809, Bai Ling assembled provincial squadrons alongside six Portuguese naval warships from Macao, trapping Zhang's main battle fleet in the bay off Chek Lap Kok on Lantau Island for nine continuous days. When Black Flag Fleet leader Guo Podai refused to send relief due to long-standing factional rivalries, Zhang seized on an unexpected shift in wind direction to lead a night breakout under heavy cannon fire, preserving his main fleet. Following this crisis, Guo Podai defected to the Qing authorities, receiving an imperial commission as a lieutenant. Observing Guo's favorable reception and recognizing that maritime piracy faced imminent strangulation under the imperial blockade, Zhang and Zheng Yisao resolved to seek imperial amnesty.

Surrender, Anti-Piracy Service, and Death

In early 1810, through the mediation of a prominent Macao physician named Zhou Feihong, Zhang opened formal negotiations with Viceroy Bai Ling. In April, Bai Ling traveled to Furongsha in Xiangshan County to oversee the official surrender. Zhang surrendered 270 war junks, 1,200 pieces of artillery, seven thousand hand weapons, and sixteen thousand veteran fighters. In an extraordinary act of imperial clemency, the throne granted Zhang the rank of military company commander, awarded him the peacock feather, and disbursed funds to resettle the surrendered crews. Zhang officially adopted the name Zhang Bao to mark his transformation into an imperial officer.

Demonstrating immediate loyalty to the Qing state, Zhang volunteered to lead frontline sweeps against remaining pirate factions. In June 1810, he guided imperial naval forces to intercept the recalcitrant Blue Flag Fleet off the Leizhou Peninsula. In ferocious ship-to-ship boarding actions, Zhang personally leaped onto the flagship of pirate admiral Wushi Er (Mai Youjin) and took him captive, entirely dismantling the last major pirate confederation in South China. For this feat, the court elevated him to major and later promoted him to guerrilla commander.

In 1819, following a decade of maritime security service, Zhang was promoted to Vice Commander of the Min'an Brigade in Fujian and appointed to command the vital naval base in the Penghu archipelago guarding the Taiwan Strait. His wife received formal noble titles as a recognized imperial lady. However, as an ex-pirate, Zhang remained an object of profound suspicion among conservative officials. In 1820, Imperial Censor Lin Zexu submitted a memorial urging the court to beware former maritime chieftains, prompting the emperor to bar Zhang from further promotion. In 1822, Zhang passed away at his post in Penghu at the age of forty.

Major Achievements

Supreme Command of the Red Flag Fleet

During the first decade of the nineteenth century, Zhang Baozai organized the most powerful maritime pirate coalition in East Asian history. Commanding seventy thousand men and hundreds of heavily gunned junks across the Pearl River Estuary and the South China Sea, Zhang established unprecedented naval authority. Through rigid codes of conduct, shared plunder, and advanced tactical maneuver, he successfully challenged regular Qing provincial fleets, outgunned regional squadrons, and maintained naval dominance over one of the world's most lucrative maritime trade corridors.

Decisive Surrender and Regional Pacification

Zhang's decision to accept imperial amnesty in 1810 averted what could have become a devastating, protracted maritime war of attrition. By surrendering his entire armada intact, he neutralized the paramount security crisis along the South China coast. The peaceful reintegration of sixteen thousand veteran seafaring fighters into coastal society removed the threat of starvation-driven piracy, revitalizing commerce throughout the Pearl River Delta and demonstrating remarkable pragmatic statesmanship.

Service in the Imperial Navy and Island Defense

Upon transitioning into imperial service, Zhang proved invaluable to the Qing maritime defense establishment. His deep familiarity with coastal shoals, tides, and pirate habits allowed him to capture rival chieftains such as Wushi Er with remarkable swiftness. Stationed in the Penghu Islands during his final years, he maintained vigilant naval patrols that stabilized the Taiwan Strait, ensuring maritime peace across the southeastern frontier and providing an exceptional historical example of a pirate chieftain converted into an effective defender of the realm.

Personal Relationships

  • Foster Father: Zheng Yi, founder and original supreme leader of the Red Flag Fleet who adopted Zhang in 1798 and groomed him for maritime leadership.
  • Partner and Wife: Shi (Zheng Yisao), pirate queen of the Red Flag Fleet who co-commanded the confederation with Zhang, later marrying him after their surrender to the Qing state.
  • Imperial Viceroy: Bai Ling, Viceroy of Liangguang whose effective maritime blockade and astute negotiation led to Zhang's surrender at Furongsha.
  • Rival Pirate Leader: Guo Podai, commander of the Black Flag Fleet whose refusal to aid Zhang at Lantau Island led to their bitter feud and Guo's early surrender.
  • Pirate Adversary: Wushi Er (Mai Youjin), supreme leader of the Blue Flag Fleet who refused surrender and was captured by Zhang off Leizhou.
  • Fallen Opponents: Lin Guoliang and Xu Tinggui, Qing naval brigade generals who fell in combat against Zhang's fleets in the Pearl River Estuary.

Historical Assessment

  • Zhao Erxun et al., Draft History of Qing, "Biography of Bai Ling": "Zhang Bao was cunning and gifted in commanding men. When he surrendered, he yielded all his ships and weapons, completely clearing the South China Sea of pirate unrest. Subsequently serving in the imperial forces, he accumulated notable achievements and was promoted to vice commander."
  • Yuan Yonglun, Jinghai Fenji (Record of the Pacification of the Seas): "Zhang Baozai was vigorous, resourceful, and consummate in ship handling; his men fought for him to the death. When Viceroy Bai Ling pacified him, the maritime borderlands finally found tranquility."
  • Wen Chengzhi, Pinghai Jilüe (Brief Account of Maritime Pacification): "After returning to allegiance, Zhang Bao exerted his full strength to hunt down remaining bandits, using former pirates to strike pirates and swiftly rooting out sea nests, truly fulfilling his debt to the state."

Related Entries

  • Zheng Yisao
  • Bai Ling
  • Wushi Er
  • Jinghai Fenji
  • Red Flag Fleet

FIGURES ASSOCIATED WITH THIS DYNASTY

Bibliography

  • Zhao Erxun et al., Draft History of Qing, Volume 343, "Biography 130: Bai Ling", Zhonghua Book Company.
  • Yuan Yonglun, Jinghai Fenji, Daoguang Tenth Year Edition (1830).
  • Wen Chengzhi, Pinghai Jilüe, Qing Dynasty Blockprint Edition.
  • Lin Xingzhang comp., Gazetteer of Xinhui County, Daoguang Twentieth Year Edition (1840).