Hunger, thirst and imprisonment - these are the stories from people trapped inside Mosul as IS struggles to maintain control.
Residents fleeing the recently liberated parts of the city tell of the suffering they endured.
"We suffered hunger and thirst. We lived in fear and panic. We were locked in our houses, we could not look outside. We were locked up for almost two months, unable even to look outside. Thank God we have been saved."
"We fled from hunger. We experienced all kinds of injustice and suffering."
"They treated us badly. It was a prison. They locked the door on us. They said: 'Don't come out, die inside'."
"Every time someone tries to cross the street they shoot them. Four or five times they shot people trying to cross and forced them to go back."
In the last few streets of Mosul still controlled by IS, thousands of people have been sheltering for weeks with little food and no electricity.
They feared being bombed if they remained in place, and being shot by snipers if they did not.
As more parts of the city are liberated, the people are making their way to safer areas.
Iraqi Federal policeman Yassir Abbas Naji says he is confident Mosul will be free in the next few days.
"We will announce good news to the Iraqi people, God willing. Daesh (IS) fighters have started to drop their weapons and flee. Yesterday we captured four or five (IS fighters) who were trying to flee among civilians. We are now monitoring their movements by drones and we saw them dropping their weapons and fleeing. Now, about six or seven fighters are walking towards us and we are waiting for them to arrive. God willing, we will break the good news to the Iraqi people very soon."
Iraq's Prime Minister, Haider al-Abadi, encouraged the fight against IS from Baghdad.
"I congratulate all the courageous fighters and Iraqi families, whether in the liberated areas or in the rest of Iraq, for achieving this big victory in Mosul and for bringing down the false state of Daesh."
It was in Mosul that the terrorist group declared it's so-called "caliphate" over parts of Iraq and Syria, and the city is the largest city ever controlled by IS.
However, the number of IS militants fighting in Mosul continues to fall as the military and police forces sweep the city.
Iraqi military say there are only a few hundred fighters left in the city.