The Cracks in the Ward System: Urban Foundations Laid in Late Tang and Five Dynasties
In the autumn of 776 CE, a 28-year-old maritime merchant named Li Yanliang stood at the eastern gate of Yangzhou’s official market, watching as the city’s drum tower sounded the second roll signaling the market’s imminent closure. His cargo of ten bolts of Songzhou brocade, fifty catties of Huzhou green tea, and two hundred pieces of Yue kiln porcelain—purchased from southern traders just three days prior—was still half-unloaded from his river junk, its hull creaking under the weight of goods bound for Arab merchants in Guangzhou and, ultimately, the markets of Baghdad and Damascus. The drum’s third roll echoed through the narrow alleys of the commercial ward, and the market guards, their lacquered wooden tablets glinting in the late afternoon sun, began to herd the last of the foreign traders toward the gate. Li had seen this scene a dozen times in his three years of plying the route between Yangzhou and Guangzhou, but this time, a delayed river convoy meant his cargo would sit exposed to the autumn rains for three full days before the market reopened at dawn on the fourth. He made a mental note, as he had dozens of times before: the ward-market system, the rigid spatial and temporal order that had governed Chinese urban life since the Han Dynasty, was not built for men like him, whose livelihoods depended on crossing seas, not keeping to the clock of the state.
To understand the weight of Li’s frustration, one must first grasp the logic of the *fangshi zhi* (坊市制, ward-market system) that had structured Chinese urban space for nearly a millennium. Codified in the 737 *Kaiyuan Legal Code* and elaborated in the 738 *Tang Six Codes* (*
In the autumn of 776 CE, a 28-year-old maritime merchant named Li Yanliang stood at the eastern gate of Yangzhou’s official market, watching as the city’s drum tower sounded the second roll signaling the market’s imminent closure. His cargo of ten bolts of Songzhou brocade, fifty catties of Huzhou green tea, and two hundred pieces of Yue kiln porcelain—purchased from southern traders just three days prior—was still half-unloaded from his river junk, its hull creaking under the weight of goods bound for Arab merchants in Guangzhou and, ultimately, the markets of Baghdad and Damascus. The drum’s third roll echoed through the narrow alleys of the commercial ward, and the market guards, their lacquered wooden tablets glinting in the late afternoon sun, began to herd the last of the foreign traders toward the gate. Li had seen this scene a dozen times in his three years of plying the route between Yangzhou and Guangzhou, but this time, a delayed river convoy meant his cargo would sit exposed to the autumn rains for three full days before the market reopened at dawn on the fourth. He made a mental note, as he had dozens of times before: the ward-market system, the rigid spatial and temporal order that had governed Chinese urban life since the Han Dynasty, was not built for men like him, whose livelihoods depended on crossing seas, not keeping to the clock of the state.
To understand the weight of Li’s frustration, one must first grasp the logic of the *fangshi zhi* (坊市制, ward-market system) that had structured Chinese urban space for nearly a millennium. Codified in the 737 *Kaiyuan Legal Code* and elaborated in the 738 *Tang Six Codes* (*Tang Liudian* 唐六典), the system divided every Tang city into two distinct, non-overlapping spatial zones: residential wards (*fang* 坊) enclosed by high brick walls, with gates locked at dusk and opened at dawn by official drum and gong signals, and designated market wards (*shi* 市) located at fixed, often peripheral, locations within the city, where all commercial activity was legally required to take place. The *Tang Six Codes*’ *Commissioner of Markets* (*Shifu* 市署) chapter laid out 27 specific regulations governing market operations, including a mandate that all markets operate only between the third and seventh *shi* (roughly 9 a.m. to 3 p.m. in modern timekeeping), a ban on merchants residing in or operating businesses out of residential wards, and a requirement that all foreign traders be confined to official inns (*kuli* 客邸) within the market ward and depart the city within 30 days of arrival. For Li’s father, a minor silk merchant who had operated a stall in Chang’an’s bustling East Market in the 740s, these rules were not abstract constraints: he was fined twice for attempting to sell a bolt of brocade to a Sogdian trader outside market hours, and his application to open a small shop in his residential ward was rejected three times by the municipal court. The system was designed not to suppress commerce, but to subordinate it to the state’s priorities of social control, tax collection, and political stability: by concentrating merchants in a single, surveilled space, the Tang state could monitor transactions, collect the 2% commercial tax (*shui* 税) on all sales, and prevent the “disorder” of mixed-class interaction that officials feared would undermine the hierarchical order of imperial rule.
But by the time Li Yanliang arrived in Yangzhou in 773, the ward-market system was already fraying at the edges, undone by a crisis that had shattered the Tang state’s ability to enforce its own laws: the An Lushan Rebellion (755–763 CE). The rebellion, which began when the Sogdian-Turkic general An Lushan seized the eastern capital Luoyang and declared himself emperor, killed an estimated 13 million people, destroyed the Tang’s core agricultural and tax base in the Yellow River valley, and forced the imperial court to flee Chang’an for the southern city of Chengdu. When the rebellion was finally suppressed in 763, the Tang state was a shadow of its former self: it had lost control of more than half of its territory to autonomous military governors (*jiedushi* 节度使), who collected taxes, raised armies, and administered justice in their domains without imperial oversight. Yangzhou, the economic hub of the Jiangnan region and the terminus of the Grand Canal, fell under the control of the military governor of Huainan Circuit, a position that changed hands 17 times between 763 and 880 as rival generals fought for control of the city’s lucrative customs and commercial tax revenues.
For Li Yanliang, the fragmentation of Tang central authority was not a disaster—it was an opportunity. Unlike his father, who had operated under the watchful eye of Chang’an’s municipal officials, Li operated in a city where the military governor’s primary concern was not enforcing 100-year-old market regulations, but maximizing tax revenue to fund his army. In 774, Li paid a 10-tael silver “market example fee” (*shili qian* 市例钱) to the Huainan Circuit’s market office, a informal payment that had no basis in Tang law but was widely accepted by local officials as a bribe to allow him to bypass market hour restrictions. With the fee paid, he was able to unload his cargo at the Yangzhou wharf at any hour, sell directly to waiting foreign traders without setting foot in the official market, and store his goods in a rented warehouse in the city’s West Ward, a residential zone that had been off-limits to commercial activity under Tang law. By 778, his annual profits had tripled, and he had hired three clerks and two guards to protect his expanding inventory of southern silks, teas, and porcelains. His experience was not unique: a 2021 study of late Tang commercial contracts unearthed in the Yangzhou Grand Canal archaeological site found that 68% of merchant contracts dated between 770 and 800 included clauses allowing for “unrestricted unloading and storage of goods outside official market hours,” a clear indication that informal market liberalization had become the norm, not the exception, in Yangzhou and other major commercial cities.
This informal liberalization was not limited to Yangzhou. Archaeological excavations of late Tang urban sites across China have revealed a consistent pattern of commercial activity spill