The innovation in technology and economic growth, which are brought about by digital transformation in enterprises, will inevitably impact their performance in the capital market. Using a sample of Chinese A-share listed companies from 2012 to 2021, this study extensively examines the impact, mechanism, and economic consequences of enterprises digital transformation on stock liquidity. The research reveals that enterprises digital transformation can significantly improve stock liquidity. From the perspective of corporate governance, a further analysis indicates that the digital transformation of enterprises can improve stock liquidity by three mechanisms: easing financing constraints, improving the quality of internal control, and enhancing information disclosure. The results of the heterogeneity analysis indicate that the digital transformation of enterprises, combined with a high level of financial technology, developed financial markets, and policy guidance, has a significantly more significant effect on improving stock liquidity. The analysis of economic consequences reveals that the digital transformation of enterprises can lower the risk of a stock price crash and enhance the accuracy of analysts’ forecasts, primarily by improving stock liquidity. This study offers empirical evidence from a micro-mechanism perspective that elucidates the spillover effect of enterprise digital transformation on the capital market. It provides insight into the impact of enterprise digital transformation on stock liquidity and offers theoretical guidance to promote the adoption of enterprise digital transformation across different countries and enhance stock liquidity in the capital market.