Mike pompeo, donald trumps secretary of state, last monththreatenedto withdraw the us embassy from baghdad unless iraqs government cracked down on attacks by powerful iran-backed shia paramilitaries on the diplomatic compound and us bases.

This threat led to speculation in iraq and across the middle east that the trump administration was clearing the decks for a major attack on the tehran-backed militias thereby delivering a boost to the presidents re-election chances in november.

Be that as it may, the militia attacks are continuing and may anyway attract us air strikes against the militias contained within the umbrella group of the popular mobilisation forces, or hashd al-shaabi. there have been dozens of these militia attacks, including on the airports at baghdad and erbil in iraqi kurdistan, on a british diplomatic convoy in the capital, and an american supply convoy from kuwait.

These hits may well not be instigated by iran. the islamic republic is reeling under us economic sanctions reimposed by mr trump. the usassassination of the top iranian general qassem soleimani in january, along with iraqi militia chieftain abu mahdi al-muhandis, also undoubtedly weakened iran.

Paradoxically, however, it also removed the two people who could control the shia militias, which are tens of thousands-strong and now appear to be off the leash.

Mr pompeos threat is indicative of howthe trump administrations erratic policiescontinue in iraq and across the middle east.

In this instance, it is diplomatically and strategically inept for the us to threaten to do just what iran and its arab proxies want it to do: withdraw from iraq. moreover, doing so would jeopardise the future of an already failing state, asiraqi leaders have warned.

Even if the threat proves empty, washingtons implied lack of commitment to iraq is bad news for mustafa al-kadhimi, the iraqi prime minister and former spy chief. a caretaker leader until next years elections, he is trying to bring themilitias under army control and prevent iraq becoming a battleground between the us and iran.

Mr kadhimi, who has qualified support from both sides, seemed to have steadied his wobbly position aftermeeting mr trump at the white housein august. yet, last month shortly before mr pompeos threat to withdraw the embassy the administration said it wascutting the 5,000-plus us troopsbased in iraq by roughly half.

Many, if not most, iraqis want an end to political tutelage and military intrusion by both americans and iranians.emblematic of this is moqtada al-sadr, a shia cleric whose party unexpectedly came first in iraqs previous elections in 2018.

Reincarnated as an iraqi nationalist in those 2018 elections, mr sadr allied his mass following in the shia underclass with the iraqi communist party and secular civil society groups, and called for usandiranian withdrawal.

Then, last autumn, popular anger in iraq exploded in a civic uprising in the capital and across the shia south. the outraged citizens of oil-rich iraq have revolted before against a corrupt political elite unable to provide basic services such as electricity and water, let alone basic security against sunni jihadi outrages and shia militia lawlessness.

But this time they fought with the loss of over 500 lives in nationalist protest against tehran and its henchmen turning their country into an iranian protectorate.

Mr kadhimi appears tounderstandand sympathise with the protesters, and their opposition to thespoils systemknown asmuhasasa, the heart of a failing state based on the looting of resources rather than sharing of power. as they rev up theircampaign once more against nearly two decades of political disaster, the prime minister offers some hope to iraqis.

The us practically gifted iraq to iran by invading it in 2003, toppling a sunni minority regime in a shia majority country, andpaving the way to an al-qaeda insurgency. that was defeated but its residue fused with former saddam hussein loyalists into isis, the jihadi blackshirts who took a third of the country in 2014.

The present iraqi prime minister isstruggling against this bleak legacyand now is not the moment to abandon him. leaving mr kadhimi in the lurch guarantees a return to the pursuit of factional advantage instead of the public good, and of zero-sum sectarianism rather than power-sharing.

It will also reopen iraqs gates toa jihadi comebackin a country already struggling to stay alive. iraqis deserve better.