China’s rare earth export trade has developed so rapidly since 1990s that China has gradually occupied a leading position in the international market. However, this fast development was proceeding at the cost of the rare earth energy consumption and environmental devastation. Now China begins to attach great importance to environmental protection, which attracts many researchers. This study aims to analyze the influence of environmental regulation on China’s rare earth export trade. And the original study is amongst the few to examine the relationship between environmental regulation and China’s rare earth export with the product-level data. Different from previous studies, this paper selects China’s rare earth export data from 1995 to 2015 and introduces product heterogeneity based on the rare earth production process. Moreover, this study uses the entropy weight method to measure the intensity of environmental regulation. The core conclusions are as follows: (1) Environmental regulation significantly promotes rather than restrains China’s rare earth export. (2) According to the rare earth production process, this paper divides rare earth products into 3 kinds, that is, rare earth raw materials, rare earth useful components and rare earth end-use applications. Then, it is found that rare earth useful component export in processing and smelting is positively affected by environmental regulation. Rare earth raw materials and end-use applications in China’s export are hardly affected. (3) Technological innovation has a mediating effect on the impact mechanism of environmental regulation on China’s rare earth export, which means that environmental regulation significantly promotes technological innovation of enterprises, and thereby the rare earth export is increased. The findings are helpful for policymakers to resolve the issue of environmental devastation.