Firstly, this paper analyzes the impact mechanism of TBT on agricultural exports; Secondly, based on the characteristics of technical barriers to trade in the United States, the European Union, Japan and South Korea, this paper analyzes the export situation of China's agricultural products, the number of batches detained and recalled, the types of blocked products, and the reasons for the blocked products. The research finds that the overall situation of China's agricultural products encountering technical barriers to trade has improved, but the situation of encountering green barriers is increasingly serious. Therefore, this paper selects the impact of green trade barriers on garlic export as an example to analyze the reasons for China's garlic export encountering green barriers and propose countermeasures. Finally, from the perspective of actively utilizing the WTO Agreement and the dispute settlement mechanism, taking countermeasures, improving the quality level and innovation ability, and establishing an early warning mechanism, specific suggestions were put forward.