Get breaking news alerts and special reports.  The news and stories that matter, delivered weekday mornings. 

BAGHDAD/ERBIL — Iraqi forces have retaken almost all of Tal Afar, ISIS' stronghold in the country's northwest, the Iraqi military said on Sunday. 

After just eight days of fighting, all 29 neighborhoods in Tal Afar city had been taken back from the militant group, the military said in a statement on Sunday. 

However, fighting was ongoing in al-'Ayadiya, a small area 11 kilometers northwest of the city, where militants who fled the district's city center were hiding out, Iraqi military spokesman Brigadier General Yahya Rasool said. 

Let our news meet your inbox.  The news and stories that matters, delivered weekday mornings.  This site is protected by recaptcha

Shiite Popular Mobilization Forces (PMF) members carry an Iraqi flag on top of Tal Afar castle after it was liberated from Islamic State militants in Tal Afar, Iraq on Aug. 27, 2017.  Thaier Al-Sudani / Reuters

Iraqi forces were waiting to retake the area before declaring complete victory in the offensive, he said. 

Tal Afar was the latest objective in the U.S.-backed war on the jihadist group following the recapture in July of Mosul, where it declared its self-proclaimed caliphate over parts of Iraq and Syria in 2014. 

The offensive on Tal Afar, which lies on the supply route between Syria and the former ISIS stronghold of Mosul, started on Aug. 20.  Up to 2,000 militants were believed to be defending the city against around 50,000 attackers, according to Iraqi and western military sources. 

Such a quick collapse of ISIS in the city, which has been a breeding ground for jihadist groups, would confirm Iraqi military reports that the militants lack command and control structures west of Mosul. 

Residents who fled Tal Afar days before the start of the offensive told Reuters that the militants looked "exhausted" and "depleted". 

Tens of thousands of people are believed to have fled in the weeks before the battle started.  Remaining civilians were threatened with death by the militants, according to aid organizations and residents who managed to leave. 

Tal Afar has experienced cycles of sectarian violence between Sunnis and Shi’ites after the U.S.-led invasion of Iraq in 2003, and has produced some of Islamic State's most senior commanders.