The Setting
Deep in China’s Gansu province, where the Gobi Desert begins its endless sprawl and the snow-capped Qilian Mountains cut against a relentless blue sky, stands the most formidable fortress of the western frontier. Jiayuguan, the “Jiayu Pass,” guards the narrowest throat of the Hexi Corridor—the vital land bridge that carried silk, jade, horses, and faith between the Chinese heartland and the civilizations of Central Asia. For centuries, anyone traveling from China proper to the “Western Regions” had to squeeze through this single point, pressed between the Mazong Mountains to the north and the Qilian range to the south. To miss the pass was to die in the desert.
In 1372, the founding emperor of the Ming Dynasty, Zhu Yuanzhang, ordered his great general Feng Sheng to secure the frontier. Feng’s army swept through the corridor, routing the remnants of Mongol power, and then he paused at this dramatic junction and made a decision that would shape Chinese history: he would build the western terminus of the Great Wall here, the point beyond which the walled world of the Ming yielded to the open steppe. The fortress he commissioned—today known as the Jiayuguan Fort—took generations to complete, its rammed-earth and black-brick walls rising eleven meters high behind a maze of barbicans, watchtowers, and arrow slits. Yet the fort’s fame rests on a peculiar legend, one every local guide tells with delight, known simply as the brick that saved Jiayuguan.
The Story
When construction of the fortress was planned, the officials faced a problem of astonishing complexity. The geometry of the fort—its trapezoid plan, its inner and outer walls, its winding barbican gates and tiered towers—demanded exact calculations. Build too few bricks, and the walls would crumble. Build too many, and the treasury would bleed silver. In this dilemma, the foreman summoned a master craftsman named Yi Kaizhan, a mason of legendary skill and mathematical precision. Yi, the story goes, spent days walking the perimeter, sighting the angles, and consulting the builders’ manuals. At last he announced a number: exactly 99,999 bricks would be needed to complete the entire fortress.
The supervising official, a skeptical and calculating man, was unconvinced. He suspected Yi of padding the estimate to skim off the surplus. “If there is even one brick too many,” he vowed, “bread and sweat will be your punishment.” Yi Kaizhan did not waver. “There will be no surplus,” he replied. To test the craftsman—and to gain a pretext for punishing him—the supervisor secretly ordered the kiln master to fire one additional brick and slipped it into the shipment. When the fortress was nearly complete, with every tower and battlement built and fitted, a chilling discovery was made: one brick remained, unused. The supervisor’s face darkened. But Yi Kaizhan, unruffled, picked up the leftover brick, climbed to the western gate tower, and placed it carefully into a high niche under the eave, where the roof beams met. Then he proclaimed to all below: “This is no ordinary brick. This is the divine settling brick. It locks the beams in place and holds the entire fortress from collapse. Remove it, and the walls will crumble.”
Whether the supervisor believed him matters little. The workers, soldiers, and local people took up the story with fervor. The brick was sacred; no one would touch it. The fortress was pronounced complete, Yi Kaizhan’s reputation was secured—and so was his neck. And so it is that to this day, the brick that saved Jiayuguan sits in its niche, a single dark brick among the wooden beams, visible to those who know where to look.
The People Behind It
Before we relegate this story to fable, we must pause to consider the real achievements of those who built Jiayuguan. General Feng Sheng, who conceived the fortress, was one of the most brilliant commanders of the early Ming. Born in a rural village in Anhui, he rose through the ranks of the rebel armies that overthrew the Mongol Yuan Dynasty, and his 1372 campaign through Gansu was a masterpiece of logistics and intimidation. But the decades of construction that followed were equally remarkable. Generations of laborers and conscripted workers hauled millions of bricks across the desert to this remote outpost. The local craftsmen—masons, brick-firers, carpenters—formed a proud hereditary guild, passing down their techniques and their legends from father to son, working through searing summers, bitter winters, scarce water, and the constant threat of steppe raids.
Yi Kaizhan, if he existed, represents a class of artisan Chinese history often forgets: the master builder who could calculate works of profound engineering entirely in his head. The legend of the 99,999 bricks mirrors a recurring motif in Chinese folklore about master craftsmen, but its specificity—the exact count, the survival of the brick in its niche—gives it a power that pure myth lacks. The local historian Wang Tianmu, who chronicled the fortress in the 1930s, wrote that “the brick that saved jiayuguan is not a brick at all; it is the memory of those who knew that calculation is a form of respect for the work of one’s hands.” The story points to a deeper truth: the fort rose through the collective labor of anonymous builders whose names are lost, but whose presence still haunts the corridors of the pass.
What Happened Next
Jiayuguan served for centuries as the symbolic western gate of the Ming and, later, the Qing empires. Envoys from Central Asian kingdoms, merchants laden with spices and lapis lazuli, Buddhist monks bound for India, and Jesuit missionaries all passed beneath its walls. In the 16th century, the Mongol leader Altan Khan tested its defenses with repeated raids; the walls held. In 1697, the Qing Emperor Kangxi formally incorporated the lands beyond the pass into the empire, ending Jiayuguan’s role as a fortified border and transforming it into a waystation and administrative center.
Time was not always kind to the fortress, but the legendary brick remained through every regime change, earthquake, and storm. By the 20th century, Jiayuguan lay largely in ruins. Yet the legend survived in the memories of villagers who lived beneath the walls. In 1961, the government declared Jiayuguan a national key cultural relic, and in 1987 it was inscribed as part of the first batch of UNESCO World Heritage listings for the Great Wall. During restoration work in the 1980s and 1990s, authorities encountered an intriguing problem: restorers were expressly ordered not to touch the legend’s brick. The prohibition had become, in effect, official policy—the brick that saved jiayuguan now had the power to save itself from restoration.
Why It Still Matters
Why does the legend of a single brick endure? On one level, it is simply a good story: a clever artisan facing down a petty tyrant, using wit rather than force. But it also carries a profound human lesson. The brick speaks to the value of precision, mastery, and pride in one’s craft—virtues as necessary in the digital age as they were in 1372. It is a monument to the idea that the difference between greatness and collapse is sometimes just one unit: one brick, one calculation, one moment of attention. For modern visitors, Jiayuguan is one of the most awe-inspiring remnants of the Great Wall, and the brick has become its most iconic detail. Guides point to the tiny dark shape tucked beneath the eave, and visitors crane their necks, trying to spot a