Four days ago, Iraqi Prime Minister Ali al-Zaidi was in Washington locking down deals with Donald Trump. Today, he's sitting across from Iranian President Masoud Pezeshkian in Tehran. It looks like diplomatic whiplash. It isn't. It's survival.
Iraq is walking a tightrope over an active war zone. With US and Iranian forces actively exchanging fire across the Middle East, Baghdad is desperate to keep its own territory from becoming a battleground. This latest trip to Iran isn't just a friendly neighborly visit. It's a calculated move to keep the Iraqi economy breathing and its borders intact. If you want to understand regional stability right now, you have to watch what Baghdad does.
The Tightrope Act Nobody Wants to Walk
You can't blame Iraq for hedging its bets. Look at the geography. Iran shares a massive, highly porous border with Iraq. When bombs start flying between the US and Iran, Iraq usually catches the shrapnel.
Al-Zaidi went to the White House earlier this week to secure American investment and finalize oil pipeline deals that could bypass the Strait of Hormuz. But he knows Washington is thousands of miles away. Tehran is right next door. The message he brought to Pezeshkian was simple but urgent. Baghdad will not let its soil be used to launch threats against Iran.
That promise is doing heavy lifting. Iran expects loyalty—or at least strict neutrality—from its neighbor. By making this guarantee publicly, al-Zaidi is trying to cool off the hawks in Tehran who viewed his US trip as a betrayal.
What They Actually Signed in Tehran
Diplomacy is cheap. Infrastructure is expensive. During this July 23 visit, Iraq and Iran didn't just exchange pleasantries. They signed four concrete memorandums of understanding aimed at tying their countries closer together.
Here is what matters from those deals.
- The Kermanshah Railway Project Iran and Iraq agreed to extend a railway line from Kermanshah in western Iran, straight through the border at Khosravi, into Khanaqin in Iraq, and eventually to Baghdad. This physically links their economies in a way that is hard to undo.
- Freight and Transport They established a new framework for international freight movement. Moving goods quickly across the border keeps Iraqi markets stocked and gives heavily sanctioned Iran an economic lifeline.
- Municipal Twinning Baghdad and Tehran are officially twinning their municipalities to share public administration resources and human resource development.
These aren't vague cultural exchanges. They are physical and administrative chains. When you build a railroad, you're making a multi-decade bet on your partner.
Why Baghdad Needs This to Work
I've watched Iraqi politics for years, and the pattern is always the same. Every prime minister tries to balance the US and Iran. Almost all of them fail.
The stakes are higher for al-Zaidi. The US has demanded that Iran-aligned armed groups in Iraq surrender their weapons by the end of September. Tehran obviously doesn't want that. Iraq is caught between American ultimatums and Iranian influence.
Al-Zaidi's strategy is economic entanglement. If Iraq's economy is deeply connected to both American oil infrastructure and Iranian rail networks, neither side wants to blow the country up.
It sounds great in theory. In practice, it's incredibly dangerous. You can't just build a railroad while missiles are intercepting drones a few hundred miles away. Kuwait and Jordan are already feeling the heat from regional strikes. Iraq knows it could easily be next.
Where This Leaves Washington
The US administration probably isn't thrilled about the railway deal. Washington just spent a week trying to pull Baghdad into its economic orbit. Seeing the Iraqi Prime minister immediately fly to Tehran and sign transport agreements stings.
But Washington has to accept reality. Iraq cannot afford to sever ties with Iran. The internal security threats are too high. The economic fallout would be devastating.
Al-Zaidi is playing the only hand he has. He will take American cash and Iranian rail lines. He will promise Washington he'll control the militias, and promise Tehran he won't let the US use Iraqi bases for attacks.
Watch the September deadline for militia disarmament. That is the real test. Until then, these diplomatic trips are just buying time.