Accelerating the green transformation of the economic development mode and promoting high-quality economic development is an international trend and the general direction. This article utilizes data from manufacturing companies listed on the Shanghai and Shenzhen stock exchanges from 2011 to 2021, based on dynamic capability theory, to explore the impact of enterprise digital transformation on green technological innovation. Furthermore, dynamic capabilities are further subdivided into absorptive capacity, innovative capacity, and adaptive capacity to investigate their mediating role. The research findings demonstrate that enterprise digital transformation has a significant positive impact on green technological innovation. Moreover, enterprise digital transformation positively influences the absorptive capacity, innovative capacity, and adaptive capacity, with these three factors playing a mediating role in the impact of enterprise digital transformation on green technological innovation. The results of the bootstrap test confirm this mediating effect. The conclusions of this study are validated through a series of robustness tests. This research not only provides theoretical support for the impact mechanism of digital transformation on green technological innovation but also offers practical insights for enterprises to achieve sustainable development.