Abstract:[Objective] An ecological compensation model taking into account regional background differences was established to further clarify the spatial and temporal differentiation pattern of ecological compensation and its leading driving factors in the Beijing-Tianjin-Hebei region, in order to provide to a reference for government departments to formulate environmental protection and macroeconomic policies.[Methods] Based on a modified carbon deficit, a reasonable ecological compensation framework was constructed using model construction, spatial correlation analysis, and GeoDetector technology, etc. The spatial and temporal variability pattern, spatial autocorrelation, driver ranking, and interaction of ecological compensation in the Beijing-Tianjin-Hebei region during the period of 2007 to 2020 were analyzed and investigated.[Results] ① Carbon emissions in the Beijing-Tianjin-Hebei region from 2007 to 2020 showed a pattern of "increasing and then decreasing" over time, and carbon sequestration generally showed a trend of continuous increase. ② The carbon deficit in the Beijing-Tianjin-Hebei region before the amendment showed a U-shaped pattern with high carbon deficits in the east, south, and west, and low carbon deficits in the north. After the amendment, the carbon deficits were higher in the east, south, and west due to low carbon deficits in the north. After the amendment, the carbon deficits were more evenly distributed in space and time due to the local differences between regions. ③ The cold spot area of the ecological compensation amount was basically located in the Northeast Beijing-Tianjin-Hebei region, and the hot spot area was located in the Southwest Beijing-Tianjin-Hebei region. There were individual cold and hot spot areas between the two areas. The hot spot area was moving to the northeast, while the cold spot area was moving towards the southwest. ④ The main factors affecting the change of ecological compensation amount were different in different years, and the main factors affecting the change of the ecological compensation amount were different. Compensation amount changed in different years. The main factors affecting the changes in ecological compensation in the Beijing-Tianjin-Hebei region in 2007, 2012, 2017, and 2020 were tertiary industry output, financial revenue, secondary industry output, and per capita gross domestic product, respectively. The interactive influence of the factors leading to the changes in ecological compensation was different in different years. The interaction effect showed the repeated effect of decreasing each other and then increasing each other. The interaction effect was different in different years.[Conclusion] The ecological compensation model that takes into account regional background differences has a certain fairness to the analysis of the spatio-temporal differentiation pattern of ecological compensation and its leading driving factors in the Beijing-Tianjin-Hebei region, and provides more accurate guidance and suggestions for government departments to formulate environmental protection and macroeconomic policies.