Tal Afar was the last major population centre in northern Iraq still under the control of the terror group and its loss deprives ISIS of what was once a key supply hub between its territory in Syria and Iraq.
"Our happiness is complete, victory has arrived and the province of Nineveh is now entirely in the hands of our forces," said a statement from the office of Prime Minister Haider al-Abadi.
After 12 days of fighting, Abadi announced that Tal Afar had "regained its place in the national territory".
The full recapture of Nineveh province comes weeks after Iraqi forces backed by a US-led coalition ousted ISIS from its capital Mosul, three years after the terror group declared a self-styled "caliphate" straddling Iraq and war-torn Syria.
ISIS has lost much of the territory it controlled in the two countries and thousands of its fighters have been killed since late 2014, when the coalition was set up to defeat the group.
ISIS fighters in Iraq now control only the city of Hawija and a few areas in the desert along the border with Syria.
ISIS terrorists overran Tal Afar, a Shiite enclave in the predominantly Sunni province, in June 2014.
At the time Tal Afar had a population of around 2,00,000, but officials said when the battle to recapture the city was launched on August 20 that it was unknown how many remained.
The deputy commander of the US-led coalition, British Major General Rupert Jones, has said the fall of Tal Afar would spell the end of ISIS in northern Iraq.
"The liberation of this city, and the remainder of Nineveh province, will essentially end ISIS's military presence in northern Iraq," Jones said.
Officials have said the capture of Tal Afar would make it even more difficult for the terrorists to transport fighters and weapons between Iraq and Syria.
Authorities had accused the approximately 1,000 terrorists believed to be in the city when the operation was launched of using civilians as human shields during Iraqi and coalition air strikes.
Progress in Tal Afar was far more rapid than in Mosul, which fell to Iraqi forces only after a gruelling nine-month battle that began in October 2016.
ISIS has also suffered major losses in Syria, where US-backed fighters have retaken more than half of the group's de facto Syrian capital Raqa.