“We have a key agreement to exchange information and have full security cooperation,” Abadi told a news conference on Thursday following a meeting with his Turkish counterpart Ahmet Davutoglu in Baghdad.

Using the Arabic acronym for the Takfiri ISIL group, Abadi added, “The Turkish prime minister also wants us to have military cooperation in the face of terrorism and Daesh and we welcome that.”

For his part, Davutoglu affirmed that the two sides had agreed on closer security cooperation.

“I can say that Daesh threatens both Iraq and Turkey, but we will cooperate and do everything we can to stand up to terrorism,” Davutoglu said.

The ISIL terrorists currently control large areas of Iraq and Syria.

The militants have been carrying out horrific acts of violence, including public decapitations, against Iraqi communities such as Shias, Sunnis, Kurds and Christians.

Relations between Turkey and Iraq have recently hit a rocky patch given that Baghdad sees as illegal the oil exports through Turkey by the semi-autonomous Kurdistan region.

Abadi said that his country and Turkey have also reached an agreement on the issue.

Referring to his talks with Davutoglu, Abadi said that Turkey is eager to have “transparent and clear” relations on the oil issue and that Baghdad would be notified if any Iraqi oil exports go through Turkish territory.