Iran on Monday threw its weight behind calls from neighbouring Iraq to oust the US-led anti-jihadist coalition from its territory after a US strike killed a pro-Iran commander in Baghdad.
"Regarding Iraq and the actions that the American government took recently, the Iraqi government has clearly announced its position," foreign ministry spokesman Nasser Kanani told a press conference.
Iran is confident that its neighbour has "the ability, strength and authority necessary to maintain security" on its territory alone, Kanani said.
"We have repeatedly expressed our views to the authorities of the countries of the region, including Iraq, and declared that the presence of American forces in any form whatsoever... would not help to maintain stability and peace," he said.
A US drone strike on Thursday killed a military commander and another member of Harakat al-Nujaba, a faction of Hashed al-Shaabi -- a collection of mainly pro-Iran former paramilitary units now integrated into Iraq's armed forces.
Washington called the attack in Baghdad an act of self-defence, but Prime Minister Mohamed Shia al-Sudani's government decried it as an act of "blatant aggression" by the US-led coalition.
Sudani said on Friday he was determined to "put an end" to the anti-jihadist coalition.
His government relies on support from Tehran-aligned parties, and he has repeatedly said in recent weeks he would like to see foreign troops leave Iraq.
Regional tensions are soaring, with the repercussions of the Israel-Hamas war being increasingly felt in Iraq and across the Middle East.
US and other coalition forces in Iraq, deployed since 2014 in the fight against the Islamic State group (IS), have come under regular attack since the fighting erupted on October 7 between Israel and Iran-backed Palestinian group Hamas.
Washington says there have been more than 100 attacks on its forces in Iraq and neighbouring Syria since mid-October.
Most have been claimed by the Islamic Resistance in Iraq, a loose alliance of Iran-linked armed groups that oppose American support for Israel in the Gaza war.
The United States has around 2,500 troops in Iraq and 900 in Syria as part of the multinational coalition set up at the height of IS's territorial gains.
Other coalition partners include France, Spain and Britain.
In late 2017 Iraq declared victory over IS, but remaining jihadist cells in remote northern areas continue to launch sporadic attacks.