Green innovation is a potent driver of sustainability. Drawing on social network theory, this paper used data from Chinese listed companies from 2010 to 2020 as a sample and found that independent directors’ interlocking network position significantly enhanced corporate green innovation. Additionally, digital transformation positively moderated this impact, while environmental regulations exhibited a U-shaped influence on this relationship. Further analysis revealed that independent directors’ interlocking network position can enhance green innovation through leveraging information, resource advantages, and environmental responsibilities. The network position of companies with lower pollution levels and diligent independent directors notably amplified green innovation. This study clarifies the boundary conditions and mechanisms of corporate green innovation, offering new ideas and evidence for sustainability.