The current development of foreign trade is facing many challenges, the process of transformation and modernization has faced many obstacles, and the direction of transformation is unclear. Therefore, in the context of the ever-growing development of cross-border e-commerce, Guangxi wants to transform and modernize cross-border e-commerce. This should clarify the increasing role of cross-border e-commerce in the development of foreign trade, seize the opportunities and recognize the current situation, exploring the path of transformation and modernization of foreign trade, so that foreign trade can realize transformation and development as soon as possible. The current century is in the era of informatization, economic globalization and big data. Based on this, when Guangxi transforms and modernizes foreign trade, cross-border e-commerce can be used as a breakout point, and it can actively play its role. role in studying the transformation and modernization of foreign trade in accordance with the real situation in Guangxi.