Life and Career
Frontier Heritage and Service on the Northern Borders
Ma Gui was born into the celebrated Ma military family of Datong Right Guard, an elite border lineage that guarded the northern frontiers for generations. His father Ma Lu served as Assistant Regional Commander of Datong, while his elder brothers Ma Jin and Ma Rong held prominent commands along the Great Wall. Raised in garrison fortresses amidst constant frontier skirmishes against nomadic cavalry, Ma Gui mastered horsemanship, archery, and tactical maneuvering in his youth. Inheriting the rank of assistant commander, he steadily advanced through frontline merits to serve as roaming commander and regional assistant.
In the early Wanli era, Ma Gui was elevated to Regional Commander of Datong in recognition of his defensive achievements. In 1582, he was reassigned as Regional Commander of Ningxia. Along the Yellow River loop, Ordos and Tumet Mongol chieftains frequently conducted seasonal raiding across the border wall. Ma Gui reorganized frontier patrols, renovated beacon networks, and instituted a doctrine combining fortified border blockhouses with aggressive out-of-pass mobile raids. Under his vigilant administration, the borderlands enjoyed unbroken peace for years, earning Ma Gui repeated imperial commendations.
In 1591, supervising censors impeached Ma Gui over minor frontier administrative oversights, leading to his temporary demotion and exile to a frontier outpost. However, as renewed turmoil flared along the northwestern perimeter, the court swiftly reinstated him to senior command.
Quelling the Ningxia Mutiny and Victory at Helan Mountains
In the second month of 1592, Pubei, a former Mongol defector serving as assistant regional commander in Ningxia, launched an armed rebellion alongside his son Pucheng'en. The rebels assassinated the governor Dang Xin, seized the provincial capital, and captured over forty defensive fortifications along the Yellow River. The imperial court appointed Ye Mengxiong to direct the overall campaign, urgently recalling Ma Gui as assistant regional commander stationed at Pingliang to block the rebels from pushing south into Shaanxi.
During the standoff, Pubei allied with powerful Ordos Mongol chieftains Zholitu and Baishi, who dispatched thousands of cavalry southward to relieve the besieged rebels. Anticipating the relief maneuver, Ma Gui positioned cavalry units at strategic defiles, ambushing the incoming nomad cavalry and beheading over one hundred warriors. When Supreme Commander Li Rusong arrived with the main expeditionary force, Ma Gui coordinated with him in a relentless pursuit into the Helan Mountains. Maneuvering through rugged valleys, Ma Gui routed Zholitu's forces, taking over one hundred and twenty heads and numerous prisoners. Deprived of nomad support, the Ningxia rebels were trapped behind city walls; Ming forces flooded the city, and Pubei committed suicide by fire. For his primary contribution, Ma Gui was promoted to Regional Commander of Ningxia.
In 1594, Mongol chieftains Buyantu and Zhuangtulai assembled over ten thousand horsemen to raid Baishui in Gansu, intending to sever Song logistics. Regional Viceroy Tian Le coordinated an offensive with Ma Gui as vanguard commander. Ma Gui set multi-layered ambushes within the Xiliang gorges, drawing the enemy across the river before unleashing massed crossbow volleys and enveloping cavalry charges. The Ming army took two hundred and thirty enemy heads and captured fifteen thousand livestock. The Wanli Emperor held a solemn victory announcement ceremony at the imperial ancestral temple. When Buyantu invaded again the following year, Ma Gui launched another surprise attack, taking four hundred heads and consolidating the frontier.
Commander-in-Chief in the Imjin War and the Battle of Jiksan
In the spring of 1597, Toyotomi Hideyoshi terminated diplomatic parleys and launched a second full-scale invasion of Korea with one hundred and forty thousand soldiers. Japanese armies overran Namwon and Jeonju, advancing northward through Chungcheong and Gyeonggi provinces toward Seoul. King Seonjo sent urgent appeals for help to Beijing. The Wanli Emperor resolved upon a massive counter-offensive, appointing Minister of War Xing Jie as Supreme Commander, Yang Hao as Military Commissioner, and commissioning Ma Gui as Commander-in-Chief of Maritime Defense, conferring upon him the seal of General Who Conquers Japan to lead the army across the Yalu River.
Upon reaching Hanseong (Seoul), Ma Gui surveyed the strategic terrain and positioned his troops to block the advancing Japanese columns. He ordered deputy general Xie Sheng and guerrilla commander Yang Dengyin to lead two thousand elite northern cavalry to establish a concealed ambush along the highway at Jiksan, while keeping the main army in reserve.
On the seventh day of the ninth month of 1597, Japanese vanguard columns led by Kuroda Nagamasa marched through the narrow defiles of Jiksan. Xie Sheng's cavalry sprang from concealment, discharging three-eyed handgonnes and iron rockets before charging with heavy sabers. Ma Gui marched rapidly to the front with main cavalry reinforcements, crushing the Japanese lines. Hundreds of enemy soldiers were slain, and the survivors fled south toward Suwon. The victory at Jiksan permanently shattered the Japanese plan to capture Seoul, halting their northern advance and stabilizing the allied Joseon-Ming position.
The Siege of Ulsan and Clearing the Peninsula
Following their defeat at Jiksan, Japanese forces withdrew to the southeastern coast, erecting a string of stone fortresses known as wajo along coastal heights. In the winter of 1597, Ma Gui and Yang Hao led forty thousand allied troops southward to lay siege to the fortress of Ulsan (Dosan), defended by Kato Kiyomasa.
On the twenty-third day of the twelfth month, Ma Gui ordered a general assault, breaching the outer wooden barricades with grand artillery and driving the defenders inside the inner citadel. Severing the fortress's access to the river, the allied forces subjected the defenders to a punishing blockade. Deprived of water, Kato's troops were reduced to eating paper and drinking mud. However, Kato resisted fanatically while Mori Hidemoto arrived with fifty thousand relief troops. Confronting sudden blizzards and logistical strain, Yang Hao ordered an orderly disengagement to Gyeongju, with Ma Gui commanding the rearguard to repel pursuing units and preserve the army intact.
In the autumn of 1598, the Ming court launched a synchronized four-route offensive across land and sea. Ma Gui took command of the Eastern Route Army, comprising twenty-four thousand troops pressing toward Ulsan. Concurrently, Toyotomi Hideyoshi died at Fushimi Castle, prompting secret orders for Japanese forces to evacuate Korea. Discovering the evacuation, Ma Gui launched a rapid assault, capturing Ulsan, Dongnae, and Pusan, taking thousands of enemy heads and driving the invaders into the sea. Following his triumphant return to Beijing, the Wanli Emperor rewarded Ma Gui with the supreme rank of Commissioner-in-Chief of the Left and conferred hereditary nobility.
Guarding Liaodong and Honorable Retirement
In 1610, as the Jurchen tribes under Nurhaci expanded beyond the Willow Palisade and Taining Mongol chieftain Chaohua frequently raided borders, the Ming court recognized that only a veteran commander could stabilize the frontier. The Wanli Emperor appointed the seventy-two-year-old Ma Gui as Regional Commander of Liaodong.
Arriving in Liaodong, Ma Gui reformed military discipline and eliminated the practice of bribing nomad chieftains for temporary truces. In 1611, Sete, the aggressive third son of Chaohua, marched toward Qinghe. Ma Gui prepared an envelopment trap, ambushing the nomad raiders and pursuing them to Mount Baiyun, inflicting catastrophic casualties and cowing the Taining tribes. In 1612, when Chahar Ligdan Khan raided Mujiapu with thirty thousand cavalry, Ma Gui commanded defenses from the ramparts despite illness, repelling the invaders.
Later that summer, suffering from age and battle wounds, Ma Gui petitioned for retirement. The Wanli Emperor granted his request, allowing him to return home via official courier relay. On November 29, 1618, Ma Gui passed away peacefully at his ancestral home in Youyu at the age of eighty-one. The imperial court dispatched envoys to oversee a state burial and sacrifices.
Major Achievements
Strategic Triumph at the Battle of Jiksan
The Battle of Jiksan in 1597 was the decisive field engagement of the second phase of the Imjin War.
Confronting the aggressive northward thrust of Kuroda Nagamasa and Kato Kiyomasa, Ma Gui exhibited exceptional operational composure. By utilizing elite northern cavalry to ambush and crush the Japanese vanguard at Jiksan, he completely removed the threat to Seoul, forcing the Japanese high command to abandon all offensive strategy and retreat into defensive coastal fortresses, permanently reversing the initiative of the war.
Four Decades of Frontier Defense in the Northwest and East
Ma Gui's military career spanned more than forty years across every major theater of the northern Ming frontier, including Xuanfu, Datong, Ningxia, Gansu, Liaodong, and the Korean peninsula.
He repeatedly repelled formidable nomadic confederacies, taking thousands of enemy heads in open combat; in the Ningxia mutiny, he severed external rebel reinforcements; and in his seventies, he crushed the Taining Mongols in Liaodong. Participating in two of the Three Great Wanli Campaigns as supreme commander, he established an extraordinary operational record.
Rigorous Discipline and Family Military Legacy
Ma Gui was celebrated for his austere discipline and tactical leadership, emphasizing reconnaissance, field fortifications, and merit-based rewards.
Within the Datong Ma clan, Ma Gui attained the highest distinction, with his nephews and relatives serving as regional commanders across imperial borders. Alongside the Li family of Liaodong, the Ma lineage formed the defensive bedrock of the late Ming military establishment.