By Idrees Ali, Reuters–

Acting U.S. Defense Secretary Patrick Shanahan arrived in Baghdad on Tuesday for an unannounced visit during which he said he would stress the importance of Iraqi sovereignty and broach the issue of the future of U.S. troops there.

President Donald Trump said this month that a U.S. presence was needed to observe Iran, which would overstep the U.S.-led coalition’s stated mission in Iraq and Syria of defeating Islamic State.

“We are in Iraq at the invitation of the government and our interests are to build Iraqi security capability,” Shanahan told reporters traveling with him on his first trip to Iraq.

“I want to hear first-hand from them about concerns, the political dynamics that they are facing and then based on that we will obviously factor that into our planning.”

Shanahan is to meet leaders including Prime Minister Adel Abdul Mahdi and will also discuss the withdrawal of U.S. troops from Syria with U.S. commanders.

Trump caused anger in Baghdad this month when he said it was important to keep a U.S. military presence in Iraq so that Washington could keep a close eye on Iran “because Iran is a real problem.”

Iraq is in a difficult position as tensions between its two biggest allies, the United States and Iran, increase.

Trump’s comments prompted almost universal criticism from Iraq’s leaders including Abdul Mahdi and raised questions about the long-term presence of some 5,200 U.S. troops in the country 16 years after the U.S.-led invasion that toppled Saddam Hussein.

The troops are there as part of an agreement with Baghdad with a specific mission of combating terrorism, and they should stick to that, Iraqi President Barham Salih said after Trump’s comments.

Iran-aligned politicians in Iraq’s parliament used the uproar to reiterate their demand that the U.S. mission in Iraq be restricted and troop numbers reduced.

Asked whether U.S. troops in Syria could be moved to Iraq, Shanahan said he would be having conversations on these topics during his visit.

U.S. Army General Joseph Votel, head of the U.S. Central Command, said on Monday he did not believe Washington would broadly increase overall troop numbers in Iraq.

SYRIA WITHDRAWAL

During a trip to Iraq in December, in which he did not meet any Iraqi leaders, Trump said the United States had spent a “fortune” on the Al Asad Air Base in western Iraq and should hold on to it.

He had earlier announced he was pulling all 2,000 U.S. troops out of Syria, a decision that stunned allies and in part led to the resignation of former defense secretary James Mattis.

Trump also said he expected a formal announcement as early as this week that the coalition fighting Islamic State had reclaimed all the territory the militant group had held in Syria.

Shanahan stayed away from predicting a timeline because weather and the presence of civilians could affect it.

U.S.-led coalition warplanes hit some of Islamic State’s last positions in eastern Syria on Monday as U.S.-backed fighters embarked on pressed an offensive.

Like most senior U.S. intelligence and military officials, Shanahan said an Islamic State resurgence was a risk unless there was a sustained effort.

“The follow on, the support to security, this is where we really look to the coalition partners,” he said.

The group was declared defeated in Iraq in 2017, but continues to wage small-scale insurgent attacks in some areas.

The U.S. military has already started withdrawing equipment from Syria.

(Reporting by Idrees Ali; editing by John Stonestreet)