A defeat in Mosul would be a serious blow to Isis' legitimacy.
The estimated 8000 jihadists in the city are expected to use everything in their arsenal to protect their last remaining stronghold in the country.
They have dug a 2m-by-2m trench around the perimeter of the city to be filled with burning oil once the army closes in. They are also thought to have rigged a chemical plant with explosives and plan to use the 1.5 million residents as human shields.
"Isis is panicked," one resident, Ahmed, said via a messaging app. "Since they lost Qayyarah, they have begun to tighten their security; carrying out mass arrests and raiding houses in search for weapons and illegal phones."
Residents face a choice between staying in Isis-controlled areas, where many have suffered extreme oppression and food shortages, or risking explosive devices and bullets to escape. Already more than 100,000 people have fled to about half a dozen pop-up tent cities. The UN is scrambling to build more, but if the numbers reach the highest predictions it could be too little too late.