China's export growth accelerated to its fastest pace since 2021 in June, driven by surging demand for AI-related products and a rush of shipments ahead of anticipated U.S. tariffs.

Exports to the United States jumped 14% in June, while imports from the U.S. grew 26%, according to CNBC's analysis of official Chinese trade data. The outbound shipment surge reflects two distinct forces reshaping global trade flows. First, the artificial intelligence boom has lifted demand for semiconductors, chips, and related components that Chinese manufacturers supply globally. Second, exporters accelerated shipments to the U.S. in anticipation of higher tariffs, a classic pre-tariff stockpiling pattern seen repeatedly in trade disputes.

The 26% jump in Chinese imports from America signals robust demand domestically. Chinese companies are purchasing American raw materials, agricultural products, and machinery to fuel manufacturing activity. This two-way acceleration suggests China's trade engine remains resilient despite economic headwinds and geopolitical tensions.

The timing matters for markets. The data arrives as the U.S. and China navigate an unstable trade relationship. Tariff threats have created artificial pull-forward demand, inflating June numbers in ways that may not sustain. Policymakers must weigh whether the acceleration reflects genuine economic strength or merely represents borrowed demand shifted forward in time. If tariffs materialize, July and August export figures could contract sharply once the pre-tariff rush subsides.

For investors, the AI-driven component of growth carries more durable weight. Global demand for semiconductor equipment, processors, and electronic components tied to AI infrastructure remains structural. Chinese manufacturers captured meaningful market share in these categories. This export stream should persist regardless of tariff developments.

The data pressures the Federal Reserve and other central banks to monitor inflation risks from supply chain disruptions. If U.S. imports from China slow materially due to tariffs, American importers will pass costs to consumers. Conversely, if Chinese demand remains strong, commodity prices for agricultural and raw material exports could stay elevated.

Currency markets also deserve attention. A stronger Chinese export performance and rising imports support the yuan. Any sustained acceleration in bilateral trade would reduce pressure on China's currency from capital outflows.