The ecological protection red line is determined based on the niche suitability score, and six indicators of forest coverage, monthly precipitation, PM2.5 concentration, CO2 emissions, topographic undulation and water supply in each province are selected to construct ecological protection The red line evaluation index system measures the niche suitability of the ecological protection red line. The weight of the six indicators is determined by the analytic hierarchy process. Then the niche suitability score calculation formula is used to calculate the comprehensive score of the niche suitability of each province in the country , And use the Echart module to make a score distribution map. According to the relevant data, select the three-digit ecological protection red line, and compare the nine cities of Tianjin, Shanxi, Jiangsu, Shandong, Henan, Yunnan, Gansu, Qinghai, Ningxia Hui Autonomous Region, and Xinjiang Uygur Autonomous Region below 3 points. Ecological protection zones have been established in three provinces. According to calculations, an increase in the area of broad-leaved forest by 100 km2 can reduce annual CO2 emissions by 10,000 tons and release 7,300 tons of O2. This shows that the establishment of ecological reserves has a positive effect on carbon neutrality.