Iraq’s parliament passed a resolution on Sunday calling on the government to boot American troops from the country following the US strike that killed of top Iranian military commander Qassem Soleimani in Baghdad.

“The Iraqi government must work to end the presence of any foreign troops on Iraqi soil and prohibit them from using its land, airspace or water for any reason,” read the nonbinding resolution.

The proposal to expel some 5,000 US troops and other foreign forces — which would require a law to be enacted — comes at a tenuous time in the yearslong American-led fight against ISIS, whose power has diminished but which maintains ties in the region.

Still, Sunday’s resolution declared the fight as won.

“The government commits to revoke its request for assistance from the international coalition fighting Islamic State due to the end of military operations in Iraq and the achievement of victory,” the resolution read.

A majority of the approximately 180 legislators on hand in the Shiite-controlled parliament backed the resolution, affirming the faction’s view that the US drone strike against Soleimani on Iraqi soil was an overreach.

Several Sunni and Kurdish lawmakers skipped the vote in an apparent protest against ejecting the country’s Western allies amid a now-heightened state of flux in the region.

But there was enough support to carry the proposal among the parliament’s controlling Shiite contingency, which had the backing of outgoing Iraqi Prime Minister Adel Abdul Mahdi.

“Despite the internal and external difficulties that we might face, it remains best for Iraq on principle and practically,” Mahdi told the body before the vote, calling Soleimani’s death “a political assassination.”

The resolution followed statements made earlier Sunday by Secretary of State Mike Pompeo in which he defended the presence of US troops in Iraq and insisted that they were welcome in the country.

“We’re confident the Iraqi people want the United States to continue to be there,” Pompeo told “Fox News Sunday” before the resolution was announced.

The State Department said in a statement after the resolution passed that it was disappointed in the outcome of the vote but not resigned to the proposed ouster as the final decision.

“While we await further clarification on the legal nature and impact of today’s resolution, we strongly urge Iraqi leaders to reconsider the importance of the ongoing economic and security relationship between the two countries and the continued presence of the Global Coalition to Defeat ISIS,” said department spokeswoman Morgan Ortagus.

Soleimani, 62, was obliterated in Friday’s drone attack on a convoy at Baghdad International Airport in what US officials have called a preemptive attack on the leader of the Quds Force.

Also killed in the strike was Iranian-backed Iraqi militia leader Abu Mahdi al-Muhandis

The attack roiled tensions in the region and sparked a high-stakes war of words on social media, with Tehran officials vowing vengeance and President Trump threatening more strikes in response.

With Wire Services