The Nasdaq surged 2.1% on Friday, and here’s the thing: this wasn’t just a ceasefire rally. This was a vote of confidence in the AI trade, which had been under a shadow since mid-May that had nothing to do with earnings or demand.

The shadow was geopolitical. The Strait of Hormuz tensions, the drone strikes near the Bab el-Mandeb, the specter of a broader Middle Eastern conflict — all of it added a risk premium to every balance sheet with international exposure. Tech companies, with their global supply chains and overseas revenue exposure, carried that premium heaviest. Nvidia alone had lost 8% from its post-earnings high as investors priced in logistics disruption and energy cost inflation.

Friday’s ceasefire extension lifted that weight in one move. Nvidia jumped 3.8%, reclaiming $1,150. AMD surged 4.2% after announcing its next-gen XPU chip is entering production ahead of schedule — a release that had been timed but not locked. The Philadelphia Semiconductor Index rose 3.1%, its best single-day gain in two months. Apple gained 2.1%, Microsoft added 1.8%, and Meta rose 2.5%.

Energy is the mirror image. The XLE Energy Select Sector ETF is down 2.4% as WTI crude slides toward $78. ExxonMobil is off 1.8%, Chevron is down 1.5%. But here’s the twist: lower energy input costs are a net positive for tech margins. Every dollar crude falls below $85 translates to roughly $0.03 of EPS upside for the average S&P 500 tech company, per Goldman Sachs estimates. That math matters in a 21.5x forward multiple market.

The rotation is clear. Tech is the primary beneficiary of de-escalation. Energy is the sacrificial lamb. And the long weekend gives traders three days to decide which side they want to be on heading into June.