Abstract:Enterprise green innovation is the foundation and buttress of the harmonious modernization of man and nature, and it is the inevitable path for enterprises to implement the green transformation strategy. Based on machine learning and text analysis method which is used to measure enterprise green innovation from the economic value-oriented dimension and ecological value-oriented dimension, and with the background of special environmental tribunals set up one after another in different parts of the country starting from 2007, local environmental legislation and environmental justice are included in the same analytical framework, and data of China,s A-share listed companies in the period of 2004-2020 are utilized to study the impact of synergistic local environmental legislation and environmental justice on enterprise green innovation. legislation and environmental justice on corporate green innovation. The study finds that environmental legislation and environmental justice have a synergistic effect on promoting green innovation of enterprises, and this conclusion is still valid after a series of robustness tests; the mechanism test shows that environmental justice in coordination with environmental legislation can drive enterprises to carry out green innovation by increasing the environmental costs of enterprises and promoting the adjustment of enterprises, green strategies on their own initiative; and through further analysis, it is found that enterprises are more inclined to choose ecological value-oriented green innovation than economic value-oriented green innovation, and the synergistic effect is more significant in state-owned enterprises, enterprises with low cost transfer capability, enterprises in the period of economic upturn, and enterprises in the period of green performance appraisal of officials. The results of the study expand the driving factors of enterprise green innovation and provide important insights for the government to promote environmental governance and accelerate the green transformation of enterprises.