Throughout the imperial era, defensive walls surrounded Chinese cities. Although most city walls have vanished, the cities have survived. We analyze a sample of nearly 300 prefectural-level cities in China, among which about half historically had city walls. We document that cities that had...