BAGHDAD — Baghdad is seeking United Nations condemnation of Turkey's deployment of troops and tanks to Iraq without the country's permission, the foreign ministry said Thursday.

Baghdad gave Turkey 48 hours to remove the forces, which Ankara has defended as necessary to protect trainers at a base in northern Iraq, but the deadline passed earlier this week without their withdrawal.

Iraq is contacting the five permanent members of the UN Security Council and other countries "to gather international support for issuing a Security Council resolution condemning this violation," the ministry said.

Baghdad has also requested an emergency meeting of Arab foreign ministers to discuss "the consequences of this violation" and to adopt an Arab position on it.

Turkish Prime Minister Ahmet Davutoglu has defended the deployment and said that, contrary to Baghdad's assertions, "no one can say that this is a surprise."

Turkey has a long-running training program at a base near the city of Mosul, the Islamic State group's main hub in Iraq, but the deployment last week expanded Ankara's presence there.

"When the threats increased (to the lightly armed Turkish trainers), we sent troops to protect the camp. It's not an act of aggression but an act of solidarity," Davutoglu said.

The base gives Turkey a foothold in an area where a major ground operation against IS is eventually to take place, and where its archfoe, Kurdish rebel group the Kurdistan Workers' Party, has also sought to expand its presence.

× Transitioning out of the service? Sign up for the Rebootcamp Newsletter to receive helpful information on education, employment and entrepreneurship. Thanks for signing up. By giving us your email, you are opting in to the Rebootcamp Newsletter.

A militant group identifying itself as "Furaq al-Mawt" (Death Squads) released a video Wednesday threatening Turkey if it did not withdraw the troops.

A group using the same name previously claimed responsibility for the kidnapping of 18 Turkish workers in Iraq.

Turkey called on its citizens to leave all areas of Iraq except the three-province autonomous Kurdish region in the north, with which Ankara has close ties.