In response to growing pressure on companies to manage and improve their reputation regarding environmental, social, and governance (ESG) issues, the audit is regarded as a vital resource for ensuring ESG risk management, improving transparency, mitigating opportunistic constraints, and guaranteeing accurate reporting. The objective of this paper was to investigate the role of audit quality in improving ESG performance, as well as to examine the role of media coverage represented by ESG controversy score in moderating these relationships. We analyzed 303 Chinese companies with 2,121 observations covering the period from 2017 to 2023. The results suggest that the effects of audit quality as measured by the Big 4 and audit fee on improving ESG performance are positive but not significant. On the other hand, the results reveal that media coverage serves as a positive, albeit non-significant, moderating variable between audit quality measured by the Big 4 and ESG performance, while it has a significant negative effect when audit quality is evaluated based on audit fees. The results indicate that improving ESG performance is significantly linked to auditors intensifying their practices and implementing their work more stringently. More importantly, media coverage is an important additional driver and economic incentive that encourages companies to steer clear of poor ESG-related practices.