Actively expanding import is an inevitable requirement to achieve high‐quality economic development in China. The green total factor productivity is calculated using the SBM model to measure the quality of economic growth considering environmental factors. Based on panel data of 30 provinces in China from 2002 to 2020, this paper constructs a spatial Durbin model and its decomposition to examine the impact of import trade on green total factor productivity from two aspects: import competition and import technology spillover. The results show that import competition promotes the improvement of green total factor productivity, while the spillover effect of import trade is the opposite, and there are significant spatial effects. Meanwhile, the two have synergistic effects which promote economic growth.