Purpose: As one of the most developed cities in China, the application of e-commerce is more mature, especially the promotion of ecommerce to foreign trade. After the establishment of Shanghai Free Trade Zone (FTZ) in 2013, the government issued a series of policies to promote the application of e-commerce in Shanghai's foreign trade. This paper takes Shanghai FTZ as an example to study how to develop the application of e-commerce in other free trade zones and how to innovate the international trade mode. Research design, data and methodology: This paper selects the latest data from 2010 to 2019, uses econometric correlation analysis and regression analysis to study the impact of e-commerce on the foreign trade of Shanghai FTZ. Results: At last, the conclusion is drawn that the establishment of free trade zone provides many advantages for the development of e-commerce in Shanghai, and the growth of e-commerce in Shanghai FTZ promotes the development of foreign trade of Shanghai FTZ. Conclusions: So as to promote the development of e-commerce in Shanghai Free Trade Zone, some suggestions are put forward, such as increasing network supervision, establishing e-commerce talent training system, logistics management and information management systematization.