The digital economy, driven by advanced technologies, is becoming a new force for economic growth and sustainable development. This study investigates how the digital economy influences energy efficiency and its spatial spillover effects across 30 Chinese provinces from 2011 to 2020 using spatial econometric models and Moran's index analysis. While prior research focused on industrial value and micro-mechanisms, this work examines geographical impacts and regional synergies overlooked previously.The findings reveal urbanization and digital economy growth significantly enhance energy efficiency. However, the effects of economic structure, education, infrastructure development, and patent activity exhibit more nuanced patterns. Notably, the spatial spillover effects of the digital economy on energy efficiency operate through a "market + geographical comprehensive mechanism" rather than direct geographic transmission between neighbors. This study contributes to the literature by uncovering the complex relationships between the digital economy, technological innovation, industrial structure, and energy efficiency while accounting for spatial dynamics. The results underscore the importance of focused policies supporting sustainable energy practices based on regional contexts. By providing insights into the intricate interplay of factors influencing energy efficiency, this research informs strategies for optimizing energy utilization and transitioning towards a sustainable, secure, and affordable energy future aligned with net-zero objectives.