● —
Loading market data…

AI Boom and Oil War: Mexico Catches Lightning, Gets Bitten by OPEC

Mexico's AI hardware exports surged 62% in 2025, but a widening petroleum deficit and IMF's growth downgrade tell a different story.

Mexico City, The global economy in 2026 is being pulled by two tectonic forces: an energy-price shock from the US-Iran conflict, and an investment boom in artificial intelligence. According to the IMF's latest World Economic Outlook, Mexico is getting hit by one and saved by the other, but the math isn't pretty.

The IMF expects global growth of 3% this year, down from the 3.5% average of 2024-25. The distribution is wildly uneven. For Mexico, the forces are pulling in opposite directions, and the energy side is winning.

Energy prices are already 25% above pre-conflict levels, a hit the IMF notes has been moderated by strategic reserve releases. But moderation only goes so far when you're a net energy importer. And Mexico is a textbook case.

What the US-Iran Conflict Means for Oil Markets

The 25% price spike traces back to a single trigger: the escalation between the United States and Iran that began in late 2025. The US Navy's Fifth Fleet increased interdiction operations in the Strait of Hormuz, through which roughly 20 million barrels of crude and petroleum products pass every day. Iran responded with asymmetric threats against tanker traffic, and by February 2026, war risk premiums had pushed Brent crude above $95 a barrel for the first time since 2022.

What makes this shock different from previous oil crises is the speed of the supply adjustment. During the 1973 Arab oil embargo, the loss was about 4 million barrels per day and lasted months. The 1990 Gulf War removed roughly the same volume. This time, the effective disruption has been smaller, around 1.5 to 2 million barrels per day of Iranian exports plus precautionary rerouting. But the premium has been amplified by tight spare capacity across OPEC+ and a market already running low on inventories after years of underinvestment in upstream production.

Past oil shocks tended to hit all importers equally. This one is asymmetrical. Asian refiners that depend heavily on Iranian crude through the Strait of Malacca have been hit hardest. Mexico, which imports almost no crude from Iran directly, is affected through the channel of global price pass-through: when Brent rises, every barrel Mexico buys, whether from the US, Saudi Arabia, or its own declining fields, costs more.

The IMF estimates the energy price shock will subtract 0.4 to 0.6 percentage points from GDP growth across emerging markets this year. For Mexico, that is roughly the difference between the 1.6% growth the IMF had penciled in before the conflict and the 1.2% it now expects. The oil shock alone accounts for the bulk of the downgrade.

Banxico data paints a brutal picture: the petroleum trade deficit hit $11.9 billion between January and May 2026, up from $9.7 billion in the same period last year. That's a 22% widening in five months.

The details are worse. Crude exports actually fell 10.7%, despite higher global prices. Meanwhile, gasoline imports jumped 9.4%. Mexico is buying more fuel at higher prices while selling less of its own crude. That's the definition of a losing position.

Pemex at 40%: Mexico's Energy Paradox

To understand why Mexico is so exposed, look at Pemex. Crude oil production has fallen from a peak of 3.4 million barrels per day in 2004 to roughly 1.5 million barrels per day in early 2026. That is a 56% decline in two decades. No other major OPEC+ producer has seen a steeper peacetime drop.

The production decline has multiple causes: chronic underinvestment in exploration, maturing offshore fields like Cantarell, and a debt burden that has consumed whatever cash flow Pemex generates. Mexico's national oil company carries roughly $105 billion in financial debt, more than any other oil company in the world, forcing it to prioritize debt servicing over field development.

Refinery utilization tells a similar story. Pemex's six-refinery system has a combined installed capacity of roughly 1.6 million barrels per day, but actual throughput has hovered around 40% in recent years, about 650,000 barrels per day. The Dos Bocas refinery in Tabasco, inaugurated with great fanfare in 2022 and still ramping up, was supposed to close the gap. It has not. Throughput at Dos Bocas has been erratic, and the refinery has faced repeated technical issues, leaving Mexico to import roughly 60% of its gasoline consumption, mostly from US Gulf Coast refineries.

This is the paradox at the heart of Mexico's energy position: the country is among the world's top 15 oil producers but remains a net importer of petroleum products. It sells heavy crude on the international market, mostly to US refiners, then buys back lighter refined products at a markup. The value destruction is embedded in the country's trade balance, visible in every Banxico report.

The structural problem? Clean energy represents barely 12% of Mexico's gross domestic energy supply. While renewables have softened the blow globally, Mexico remains badly exposed. When global energy prices spike, the country absorbs the full shock, no hedging, no meaningful domestic substitutes, no buffer. The administration's continued reliance on Pemex refining capacity, which currently operates at roughly 40% of installed capability, leaves the domestic supply chain structurally dependent on imported finished fuels.

But then there's the AI story.

The IMF notes that major AI hardware exporters grew an average of 4.4 percentage points more than expected in Q1 2026. South Korea grew 7.5%, four times the IMF's projection. And Mexico, surprisingly, is in that club.

The WTO's 2025 Global Trade Report built a specific classification of "AI-enabling goods." Under that taxonomy, Mexico exported $154 billion in AI-related hardware last year, a 62% jump from 2024. It's by far the largest single-year increase on record.

What Counts as an AI-Enabling Good?

The WTO classification covers six broad categories: computing hardware (servers, processing units), data storage equipment, networking gear, sensors and cameras, specialized software in physical media, and semiconductor manufacturing equipment. The largest by far is digital processing units, which the WTO defines broadly to include GPUs, CPUs, TPUs, and specialized accelerators used in AI training and inference workloads.

Digital processing units alone accounted for more than three-quarters of the trade value in this category globally in 2025. That concentration raises a question: is this a structural shift in global manufacturing supply chains, or a one-time surge driven by data center buildout?

The evidence suggests the former, but with caveats. AI hardware investment is still in the early phase of what many analysts project as a multiyear capital expenditure cycle. The three largest US cloud providers alone announced a combined $230 billion in capital spending for 2026, much of it for data center infrastructure. Mexico's role in that chain is real, driven by USMCA tariff preferences, proximity to US markets, and a deep pool of assembly labor.

What's driving that number? Over three-quarters of the jump comes from a single tariff line: digital processing units. Assembly of AI data center infrastructure in Jalisco and Chihuahua, where companies like Foxconn have installed dedicated lines to build computing cards and server racks for U.S. cloud providers. Mexico has become a physical backbone node for the AI supply chain.

The geographic footprint is narrower than the headline export figure suggests. Jalisco, centered on Guadalajara, is the most important node. Foxconn operates a major campus there assembling servers and networking equipment for Dell, HP, and direct cloud provider orders. The state accounted for roughly a quarter of Mexico's electronics exports in 2025.

Chihuahua, anchored by Ciudad Juarez, is the second hub. Flex, another electronics manufacturing services giant, operates plants producing data storage and networking equipment. Baja California, particularly Tijuana and Mexicali, adds medical device sensors and smaller-scale computing assembly. Together, Jalisco, Chihuahua, and Baja California account for roughly 60% of Mexico's electronics-sector output.

Other companies beyond Foxconn and Flex include Pegatron, which has expanded its Guadalajara operations for server assembly, and Wistron, which opened a dedicated line in Chihuahua for data center networking hardware. The labor footprint is significant but concentrated. The electronics manufacturing sector in these three states employs roughly 800,000 workers directly, with wages averaging 30-50% above the national manufacturing average. But the value added per worker remains modest. Mexico is performing final assembly and testing, not chip design or advanced fabrication.

The AI hardware supply chain is a bright spot for Mexican manufacturing, but it is also fragile. The tariff preferences that make Mexico competitive under USMCA could shift. The assembly operations depend on imported components, mainly from Asia, that are subject to their own supply chain risks. And the skills required for assembly do not automatically create the engineering ecosystem needed for higher-value production.

Two Forces, One Country, Opposite Outcomes

The energy shock punishes Mexico on the import side. The AI boom rewards it on the export side. On paper, that sounds like a wash. In practice, it's not even close.

The IMF slashed its 2026 growth forecast for Mexico from 1.6% to just 1.2%, barely a third of the global average, and tied among the worst in Latin America. Even a $154 billion export windfall isn't enough to lift the broader economy out of its rut.

Why? Because AI hardware assembly, for all its headline value, remains a relatively narrow sector with thin domestic linkages. The jobs and value chains stay shallow, assembly lines, not innovation ecosystems. The petroleum deficit, by contrast, bleeds across the entire economy in the form of higher fuel costs, logistics inflation, and compressed margins for every business that moves something from point A to point B.

Mexico is positioned to win on the technological frontier, low-cost manufacturing for the data center gold rush, while simultaneously losing the energy war. The AI export surge is real and impressive. But in the IMF's arithmetic, it's not moving the needle on GDP growth.

What the data suggests is that Mexico's energy vulnerability is a structural lid on growth. No amount of server rack assembly in Guadalajara will fix a $12-billion-and-growing petroleum trade hole. The two forces aren't canceling each other out. The energy shock is heavier.

The policy implications are clear. Mexico needs a strategy that captures the AI boom while insulating the economy from energy shocks. The first lever is energy security. The government should accelerate renewable energy permitting and grid integration, particularly in the northern states where the AI supply chain is concentrated. Solar and wind in Chihuahua and Baja California are among the most competitive in the world on a levelized cost basis, but regulatory bottlenecks have kept development far below potential. Private investment in solar and wind generation is waiting on clearer CFE dispatch rules and faster environmental impact approvals.

The second lever is IMMEX incentives tied to clean energy usage. The IMMEX program already allows duty-free imports of components for assembly and re-export. Adding tiered energy requirements, lower tariffs for facilities powered by at least 50% clean energy, would align Mexico's manufacturing competitiveness with its energy transition goals. The AI hardware assemblers in Jalisco and Chihuahua are natural early adopters.

The third lever is nearshoring capture. Mexico's AI hardware export growth is driven by proximity to US demand and USMCA preferences. But other Southeast Asian economies are competing for the same assembly investment. Mexico should extend PROSEC sector promotion programs to cover AI-specific components and provide tax credits for R&D spending in electronics manufacturing. The goal should be to move from assembly to component-level manufacturing over the next five years.

The fourth lever is fiscal management. The petroleum deficit is partly structural and partly cyclical. The government should strengthen the oil hedging program, which Mexico has among emerging markets, to lock in protection against further price spikes. It should also use whatever fiscal space exists to invest in domestic refining capacity, but through private sector partnerships rather than Pemex alone, given the company's debt constraints.

The bigger question, the one neither Banxico data nor WTO trade classifications can answer yet, is whether Mexico can turn its AI manufacturing beachhead into something deeper before the next energy shock hits. Because if 2026 has taught anything, it's that there will always be a next one.