
Early imperial Chinese capitals were divided into walled, gated residential wards (fang or li) set out by a grid of avenues, with commerce confined to a few enclosed official markets. In Tang Chang'an, eleven north-south and fourteen east-west streets cut the city into 108 wards and two markets; gates opened and shut to drum signals and residents kept a strict night curfew. The ward was an administrative and policing cell as much as a neighbourhood. From the late Tang into the Song the system broke down, curfews lapsed, and open shop-lined streets appeared in cities such as Kaifeng.
The fang ward defined the controlled, introverted form of the early imperial city, and its Song-era collapse marks the birth of the open commercial street still central to East Asian urbanism.