President Tayyip Erdogan warned Iraq's prime minister he should "know his limits" after he criticised Turkey's military presence there and said the Turkish army, shaken by a failed coup bid, had not lost so much standing as to take orders from him.
Erdogan said Turkey had "live records" of Iraqi government's security demands and said these would be broadcast "today or tomorrow".
Iraq's next parliamentary elections are due in 2018 but some lawmakers are calling for them to be held next year, after a planned offensive to try to dislodge Islamic State from Mosul, the last important city under the militants' control in Iraq.
The president also said Turkey would continue to do "what is necessary".
In the first nine months of this year, IS' territory fell from 78,000 sq km (30,115 sq miles) to 65,500 sq km - an area equivalent to the size of Sri Lanka - IHS analysts said.
He added Turkey could not be "a mere spectator" over developments in Iraq: "If Iraq and Syria are in trouble, it is Turkey's utmost responsibility to put all kinds of efforts into solving the problem and take measures".
For weeks, anti-terror forces have been preparing for a large offensive in Mosul to clear out the Islamic State's fighters there.
Jaguars engineer late comeback to stun Bears
Chicago converted seven of its first 10 third downs before failing to convert on seven chances in the second half. I'm expecting him to tear it up Sunday, and think he could very well throw for over 250 yards and 2 touchdowns.
The Iraqi official added that Ankara was not serious about resolving a dispute over Turkey's deployment of troops in Iraq. Turkey says about 700 IS militants have been killed in retaliatory attacks against the extremists carried out from the base.
"You are not my interlocutor, you are not at my level, you are not at my quality", Erdogan hit back by saying.
The battle for Mosul could start as soon as this month with backing from the US -led coalition forces.
"What we support is continued dialogue between them that can lead to a speedy resolution of the matter".
An Iraqi intelligence source said that they were "integral" to the battle and were "more effective than any other advisers", including USA forces. Turkish is anxious that once Mosul is liberated from IS, Kurds or Shiite groups may take Mosul over and push out Sunni Arabs or ethnic Turkmens.
"If you, after removing Daesh, attempt to change Mosul's demographic structure, you will light the fire of a very big civil war, of a sectarian war".