Against the background of global climate change and increasing ecological vulnerability, enhancing ecosystem resilience has become a core task for coping with environmental shocks and achieving sustainable development. The urban energy structure plays a critical role in influencing the green development of the economy and the enhancement of environmental resilience. Existing studies have revealed the role of energy structure transformation in the identification of macroeconomic performance and environmental outcomes, but have neglected its impact on ecosystem resilience. This paper exploits the implementation of the New Energy Demonstration City pilot policy as a quasi-natural experiment. Using panel data of Chinese prefecture-level cities from 2010 to 2022, it constructs a multidimensional evaluation system of urban ecosystem resilience and employs a difference-in-differences (DID) model to empirically examine the impact of energy structure transformation on urban ecosystem resilience. It is found that energy structure transition significantly enhances urban ecosystem resilience, and this conclusion is verified through a series of robustness tests. Mechanism analysis shows that energy structure transformation comprehensively enhances urban ecosystem resilience through strengthening institutional regulation, optimizing resource allocation, promoting energy substitution, and enhancing public awareness. Heterogeneity analysis indicates that the strengthening effect of energy structure transition on urban ecosystem resilience is inclusive, and that this positive effect is greater in cities characterized by lower resource endowment and weaker governance capacity. This paper reveals the intrinsic mechanism of urban energy transition for ecological resilience enhancement, and provides an energy transition path for building more resilient urban ecosystems.
Mo et al. (Mon,) studied this question.