如何借助数字经济赋能手段实现多方共赢,是新发展阶段推进我国城市绿色发展的关键。本文基于复合生态系统理论构建了城市绿色发展评价指标体系,运用纵横向拉差与效用函数相结合的方法测度了2010~2022年中国266个城市绿色发展水平,分析了数字经济对城市绿色发展的空间影响。研究发现:首先,数字经济对城市绿色发展的空间影响中虹吸与溢出并存,不同竞争优势城市表现出明显的异质性特征。其次,当前城市绿色发展差距保持缩小的趋势,城市在绿色发展方面的空间互动会通过溢出效应提高双方绿色发展增速,同时产生虹吸效应减缓绿色发展差距的缩小速度。进一步地,利用宽带中国政策构造准自然实验,剥离出数字经济的净空间影响。基于空间PSM双重差分模型发现邻近城市在数字经济方面的政策学习行为,会造成虹吸削弱了数字经济的直接效应,但产生的溢出提高了间接效应,最终加强了数字经济对城市绿色发展的总效能,达成了双赢局面。这些结论为进一步优化城市发展政策和缩小城市之间的差距具有重要意义。How to leverage digital economy empowerment tools to achieve a win-win situation for all parties is key to promoting green urban development in China in the new development stage. This paper constructs an urban green development evaluation index system based on the composite ecosystem theory, and measures the green development level of 266 cities in China from 2010 to 2022 using a combination of vertical and horizontal gap pulling and utility functions, and analyzes the spatial impact of the digital economy on urban green development. The study finds that: firstly, both siphoning and spillover effects coexist in the spatial impact of the digital economy on urban green development, with cities of different competitive advantages showing distinct heterogeneity. Secondly, the gap in urban green development is narrowing, and spa