This paper studies the influence of trade structure optimization on green technological innovation with the path of technological progress, and introduces government support (low-carbon subsidies and R&D subsidies) into the model to explore its regulatory role in the path of "trade structure optimization-technological progress-green technological innovation", making an empirical test based on the panel data of 30 provinces in China from 2009 to 2019. The results show that the optimization of import and export trade structure can have a positive impact on green technology innovation. The optimization of import and export trade structure further enhances the innovation ability of green technology by promoting technological progress, which plays a complete intermediary role between the two variables respectively. Low-carbon subsidies positively strengthen the impact of import trade structure optimization on technological progress, while the intensity of R&D subsidies will weaken the impact of import trade structure optimization on technological progress to some extent.