The research results show that executive compensation incentive will inhibit the real earnings management behavior of enterprises, and digital transformation plays an intermediary role in the suppression of real earnings management by executive compensation incentive. Specifically, the salary incentive for executives will promote the digital transformation level of enterprises, and then inhibit the real earnings management behavior of enterprises. This research conclusion has guiding significance for enterprises to promote digital transformation and improve profit quality.