Enhancing urban ecological resilience ( UER ) through environmental regulation ( ER ) is critical for preserving ecosystem integrity, upgrading environmental quality, and delivering sustainable economic growth. Nevertheless, few studies examine the joint impacts of ER and Government self-sufficiency capacity ( GSC ) on UER . This gap motivates the present study to elucidate their interactive mechanisms. Drawing on a balanced panel dataset covering 279 Chinese prefecture-level cities over 2012 to 2021, this study adopts panel regression, moderation analysis, and threshold regression models to disentangle the relationships among ER , GSC , and UER . All empirical data are retrieved from authoritative official sources: the China Industrial Enterprise Database, the China Enterprise Pollution Emission Database, and serial China Statistical Yearbooks. Empirical outcomes demonstrate that ER exerts a significant facilitating effect on UER , and GSC acts as a positive moderator that magnifies such beneficial linkage. The ER–UER nexus displays prominent spatial heterogeneity: the magnitude of this facilitating effect declines from the eastern to the western regions and stands out more pronounced in cities of the Yangtze River Economic Belt (YREB). Moreover, GSC triggers a double-threshold structure that shapes a three-stage nonlinear trajectory of ER ’s impacts on UER . Relative to existing literature, this study identifies a novel double-threshold mechanism in the ER–GSC–UER nexus and expands research on regional heterogeneity in environmental regulation by incorporating local fiscal governance capacity. Practically, local governments can strengthen ER and improve GSC to boost UER through differentiated governance. This paper offers evidence-based guidance for tailoring environmental regulatory frameworks to local conditions and enhancing urban ecological resilience.