This article selects the listed companies in China’s A-share heavy pollution industry from 2014 to 2018 as samples, uses a random effect model to empirically test the relationship between media attention and corporate environmental performance and examines the impacts of local government environmental protection and property nature on that relationship. Results are as follow: (1) Media attention can significantly affect a company’s environmental performance. The higher the media attention, the greater the company’s supervision and the better its environmental performance. (2) In areas where the government pays less attention to environmental protection, the impact of media on corporate environmental performance is more obvious, but in other areas, the impact of media on environmental performance cannot be reflected; (3) The media attention is very significant for the environmental performance improvement of state-owned enterprises, and it is not obvious in non-state-owned enterprises. (4) A further breakdown of the study found that the role of media attention in corporate environmental performance is only significant in the sample of local governments that have low environmental protection and are state-owned enterprises. This research incorporates the local government’s emphasis on environmental protection into the research field of vision, expands the research scope of media and corporate environmental performance, and also provides new clues and evidence for promoting the active fulfillment of environmental protection responsibilities by companies and local governments.