BAGHDAD: The prime minister of Iraq has kept his country on the sidelines as military conflicts raged nearby for almost two years. This required balancing Iraq’s relations with two countries vital to his power and enemies with each other: the US and Iran.

The feat became especially difficult last month when war broke out between Israel, a US ally, and Iran — and the US struck Iranian nuclear sites. Mohammed Shia Al-Sudani said he used a mix of political and military pressure to stop armed groups aligned with Iran from entering the fray.

In an exclusive interview with The Associated Press, Al-Sudani explains how he did this, how he plans to keep these groups in check going forward and — as he seeks a second term — why he wants to get closer to the Trump administration, even as he maintains strong ties to Iran-backed political parties that helped propel him to power in 2022.

Staying on the sidelines as Israel and Iran traded blows

After Israel launched airstrikes on Iran and it responded by firing missiles at Tel Aviv, armed groups in Iraq attempted to launch missiles and drones toward Israel and at bases in Iraq housing US troops, Al-Sudani said. But they were thwarted 29 times by Iraqi government “security operations” that he did not detail.