Amidst the wave of the digital economy, numerous enterprises have commenced the process of digital transformation to address market challenges and fluctuations, as well as to pursue sustainable growth. Directors' and officers' liability insurance (D&O insurance), being an essential instrument of corporate governance, necessitates an empirical investigation to unravel its influence on enterprises' digital transformation. This study selects Shanghai-Shenzhen A-share listed companies from 2011 to 2021 as research subjects to examine the impact of D&O insurance procurement on enterprises' digital transformation and its underlying mechanisms. The findings reveal that the procurement of D&O insurance significantly fosters the progress of enterprise digital transformation, and this conclusion remains robust after employing a series of robustness tests, including the instrumental variable method and DIGT. The mechanism analysis indicates that by elevating the risk-bearing capacity of enterprise managers, the management efficiency of enterprises can be enhanced, thereby motivating supervisory executives to augment the quality of internal control and facilitate the digital transformation of enterprises. Further examination discloses that executive equity incentives and executive responsibility insurance possess complementary effects in promoting enterprise digital transformation, making the subscription of executive responsibility insurance a pivotal factor in enhancing the effectiveness of enterprise digital transformation and fostering high-quality economic development.