Iraqi government forces have entered Jurf al-Sakhar under a deal with Kataib Hezbollah, averting a potential confrontation over the town long held by the Iran-backed armed group. The agreement has renewed questions about Prime Minister Ali al-Zaidi’s effort to bring militias and weapons under state control.

Jurf al-Sakhar is 60km (37 miles) southwest of Baghdad. Kataib Hezbollah seized it from ISIL (ISIS) in 2014 and renamed it Jurf al-Nasr (“victory”). The group has since prevented state authorities from re-establishing control, while oil was allegedly siphoned from local pipelines.

After an intelligence report this week raised allegations of oil smuggling in the town, the government formed a high-level committee to investigate. Al-Zaidi announced an anti-corruption crackdown and gave Kataib Hezbollah until Friday to withdraw. A compromise was reached a day before the deadline.

Under the deal, government forces entered the town and set up a joint operations centre. The arrangement is expected to bring a gradual withdrawal of Kataib Hezbollah units and the phased deployment of an army brigade, a federal police brigade, an energy police regiment and two brigades from the Popular Mobilisation Forces (PMF).

The compromise reportedly followed direct Iranian intervention brokered by Esmail Qaani, head of the Islamic Revolutionary Guard Corps (IRGC) elite Quds Force. The force once fought alongside the PMF against ISIL and maintains deep ties with several Iraqi militias.

Al-Zaidi, a businessman with a Shia background who took power in May, has pledged to tackle corruption and fragmentation in the country’s security landscape. He initially set September 30 as the deadline for militias to put their weapons under state control, coinciding with the withdrawal of US and allied forces from Iraq. The forces withdrew, but militias refused to comply, and the deadline was moved to June 2027.

Baghdad is also concerned that armed groups are using Iraq to launch unauthorised attacks at Iran’s behest. Since the US-Israeli war on Iran began, several Iraqi militias have pledged to support Iran’s war effort. Baghdad has acknowledged that attacks on neighbours have been launched from Iraqi territory and vowed to stop them.

Akeel Abbas, an expert in Iraqi affairs, said the government’s intervention in Jurf al-Sakhar was driven by security concerns rather than oil smuggling. “This area, which the state could not enter since 2014, did actually participate in Iran’s war effort, bombing Gulf countries, bombing US interests in Iraq,” he told Al Jazeera.

“There are other areas, but this one is the strongest, most fortified, and the best weaponry is stored there.”

In July, after Iran-aligned militias attacked Saudi Arabia’s East-West Pipeline, the United States and Saudi Arabia launched retaliatory strikes against PMF targets across Iraq. At least 20 personnel were killed, drawing condemnation from Baghdad. By establishing a presence in Jurf al-Sakhr, once the site of former President Saddam Hussein’s military-industrial complex, Baghdad signalled to the US that it was removing the town as a potential target.

Zeidon Alkinani, founding director of the Doha-based Arab Perspectives Institute, called the deal a positive step, particularly because it was reached through negotiation rather than armed confrontation. “The remaining questions are how long this will take and what the armed groups will want in return,” he told Al Jazeera.

Kataib Hezbollah may retain influence through PMF units, and deployment is likely to take weeks to complete. “How the next phases go will determine whether this becomes a real return of state authority or just a rearrangement of who controls the area,” Alkinani said.

Tallha Abdulrazaq, an Iraq expert and strategy and security consultant, said the deal was compromised by the presence of militia and pro-militia personnel in the security contingent sent by Baghdad. “Effectively, we’re changing Shia militias for Shia militias, but in uniform,” he said. “There has been no announcement about them being disarmed and their missile and drone manufacturing facilities set up with Iranian expertise being dismantled.”

Iran-backed armed groups have become some of Iraq’s most powerful actors since the US-led invasion overthrew President Saddam Hussein’s government in 2003. Kataib Hezbollah and Asa’ib Ahl al-Haq emerged from resistance to the US occupation, with alleged support from Iran. Other groups formed to counter ISIL after a fatwa by leading Iraqi Shia cleric Ali al-Sistani, fighting under the PMF banner.

The PMF is a recognised component of Iraq’s security forces, giving the militias semiofficial status. Some groups, including Kataib Hezbollah, still operate outside the state framework and have been accused of undermining the government’s legitimacy. Militias have also been accused of running corrupt patronage networks to finance themselves, while their close ties to Tehran have frustrated the government’s efforts to govern.