Chapter 1: The Urban Skeleton: Song City Planning as the Stage for Civic Life
When walking through the ruins of the Tang Dynasty’s Chang’an city today, one cannot help but notice the stark, grid-like layout of the walled wards, each separated by towering gates that slammed shut at dusk, locking residents inside their residential compounds until dawn. This rigid spatial order, known as the fangshi (wards and markets) system, defined Chinese urban life for nearly a millennium, from the Northern Wei to the late Tang, but by the early Song Dynasty, it had been completely dismantled, giving way to an open, mixed-use urban fabric that would become the very stage for the era’s unprecedented economic prosperity, technological innovation, and vibrant civic culture. The transformation was not a sudden revolution, but a gradual, often messy, evolution driven by economic pressure, policy experimentation, and the sheer force of urban population growth, as evidenced by archaeological finds, contemporary chronicles, and surviving legal codes that together tell the story of how Song cities built the “urban skeleton” that would support one of the most flourishing civilizations in pre-modern history.
1.1 The Cracks in the Rigid Order: The Late Tang and Five Dynasties’ Undermining of the Fangshi System
The fangshi system was built on a logic of strict social control: residential wards (fang) were enclosed by brick walls, with gates locked at night and opened only at dawn, while all commercial activity was confined to two state-designated market districts (shi) in each major city, operating only during daylight hours under strict official supervision. For Tang rulers, this spatial separation was a tool to enforce class hierarchy, prevent unrest, and simplify tax collection: merchants were legally barred from residing in the same wards as scholar-officials, and commercial transactions outside the official markets were punishable by fines or corporal punishment. But by the mid-9th century, this system was already fraying at the edges, as economic growth and urban population expansion outpaced the state’s ability to enforce its spatial rules.
The first cracks appeared in the form of *qinjie* (encroachment on public streets): merchants and residents in Chang’an and Luoyang began building shops and workshops on the public thoroughfares outside their ward gates, bypassing the high rents and strict regulations of the official markets. Dunhuang documents from the late Tang period record complaints from ward officials about residents setting up food stalls and tea shops on the streets, while the poet Bai Juyi wrote in 826 CE of “shops lining the streets of Chang’an as far as the eye can see, no longer confined to the eastern and western markets.” The Huang Chao Rebellion (875–884 CE), which sacked Chang’an and killed an estimated 1 million people, dealt a fatal blow to the fangshi system: the rebel army tore down ward walls to build fortifications, and in the chaos of the subsequent Five Dynasties period (907–960 CE), no central authority had the power to rebuild the walls or enforce market restrictions. By the time the Song Dynasty unified China in 979 CE, the fangshi system had ceased to exist in practice, even if it remained on the books.
Archaeological evidence confirms this shift: excavations of late Tang layer in Chang’an have found that the street surfaces outside the former ward gates were raised by 1–2 meters from the original Tang street level, filled with the remains of shop foundations, pottery kilns, and food waste, showing that commercial activity had spilled out of the official markets and onto the public streets long before the Song officially abolished the system. In the northern capital of Luoyang, late Tang layers have yielded thousands of bronze coins and ceramic merchant tokens buried in the streets outside the former residential wards, evidence of a thriving informal economy that operated outside official control. This bottom-up pressure from merchants and residents, combined with the Song court’s pragmatic approach to governance, set the stage for the formal dismantling of the fangshi system in the early 10th century.
1.2 The Northern Song Capital Kaifeng: The Prototype of the Jiequ (Street and Lane) System
When the Song court established its northern capital at Kaifeng (then called Dongjing, or Eastern Capital) in 960 CE, it inherited a city already transformed by decades of informal growth. Unlike Chang’an, which was built from scratch as a rigid grid following cosmic principles, Kaifeng was a pre-existing Tang city that had grown organically around the intersection of four major canals: the Bian, Cai, Huimin, and Jinshui Rivers, which carried grain and goods from the Yangtze River valley to the north China plain. The Later Zhou emperor Chai Rong had begun expanding the city’s walls in 954 CE to accommodate its growing population, and the Song court continued this expansion, completing the outer city walls in 983 CE, which enclosed an area of 64 square kilometers, more than twice the size of Tang Chang’an.
The Song court’s first formal move to dismantle the fangshi system came in 962 CE, when Emperor Taizu issued an edict ordering the demolition of all remaining ward walls inside the inner city, converting the former enclosed wards into open street networks. The edict did not ban the use
of the former ward spaces for commercial or mixed residential-commercial use—it simply removed the physical barriers that had restricted movement and trade for centuries. The demolition of ward walls was accompanied by a parallel policy to formalize the new open street network: local officials were ordered to survey the former ward spaces, rename the narrow lanes and wider streets based on their most prominent businesses or local landmarks, and install simple wooden signposts to mark boundaries. Within a decade, the former grid of enclosed wards had been replaced by a sprawling, unplanned network of streets and lanes that stretched far beyond the original Tang city walls, as residents and merchants built new homes and shops on the previously restricted public land outside the old boundaries. By the time Emperor Taizong completed the outer city walls of Kaifeng in 983 CE, the city’s street network had already expanded to cover more than 90% of the enclosed area, with no remaining physical traces of the Tang-era ward system.
The most transformative impact of this policy shift was the formal legalization of commercial activity outside the old official market districts. The Tang-era restrictions that confined all trade to the Eastern and Western Markets, and banned nighttime commercial activity, were quietly dropped from the Song legal code, replaced by a far more flexible set of rules that allowed merchants to open shops along any public street, operate from dawn until late at night, and even set up temporary stalls during peak market hours. The earliest surviving Song legal codes, such as the *Song Xing Tong* (宋刑统, Compiled Penal Code of the Song Dynasty) issued in 963 CE, contain no explicit bans on street commerce, only minor regulations to prevent merchants from blocking thoroughfares or dumping waste in public spaces. This legal vacuum allowed commercial activity to spread rapidly across the city: by the early 11th century, Kaifeng had more than 400 distinct market zones, ranging from small neighborhood grocery lanes to massive specialized markets for books, silk, grain, and medicinal herbs, spread evenly across the city rather than concentrated in a single central location.
Archaeological evidence from recent excavations of Kaifeng’s Song-era layers confirms this dramatic shift. The most significant find to date is the 2022 excavation of the city’s central Zhou Bridge (州桥) site, which sat at the intersection of the imperial avenue and the Bian Canal, the main artery for grain shipments from the Yangtze River valley. Excavators uncovered a 25-meter-wide Song-era street surface, flanked by 2-meter-wide drainage ditches, with