The ongoing COVID-19 pandemic has left a strong imprint on many aspects of urban life. Gated communities (GCs) in China are less commonly perceived as a negative and segregated urban form of community compared to other contexts, owing to their wide variety and relative openness. Yet, the enhanced security zone function and the popularity of GCs, along with the heightened segregation and exclusion effects, mean they are most likely to emerge in post-pandemic urban China because of the perceived effectiveness of GCs in preventing health risks by excluding outsiders during the pandemic. Drawing on empirical data from Beijing, this research presents strong evidence for a strengthened perceived ‘security zone’ effect of GCs during the pandemic. Given that rigid pandemic control measures were organized at the community level, a large-scale household survey in Beijing suggests that residents commonly recognise the effectiveness of GCs in security control and show a strong preference for GCs over open communities after the pandemic, even though there is a lack of direct evidence of reduced COVID-19 risk in GCs. The heightened perceived ‘security zone’ function of GCs has shown a significant impact on the housing market, evidenced by an increase of 2% in the housing prices for GCs, compared with those of open communities. The rising popularity of GCs is also evidenced by a significant increase in property viewings by potential homebuyers and smaller price discounts in actual transactions in gated communities vis-à-vis open communities. We argue that the rising risk-averse sentiment in the post-pandemic era has given rise to the popularity of GCs. This study provides timely and fresh insights into the changing meaning of GCs in post-pandemic China.