Mosul, Iraq’s second largest city, is now the scene of a battle for control between Iraqi, Kurdish, and ISIL forces.

In June 2014, Islamic State of Iraq and the Levant (ISIL, also known as ISIS) forces captured Mosul, Iraq’s second-largest city. Three years later, ISIL’s last urban stronghold in Iraq and its self-proclaimed caliphate are quickly crumbling.

The city, which still houses more than one million people, is currently besieged by an internationally led coalition of Iraqi forces. According to the coalition, troops are in the final stages of reclaiming the city from a small remaining number of ISIL group fighters.

As the push to retake the city is at its final stages, the armed group no longer has any significant presence in Iraq, as this map of control illustrates.

READ MORE: The battle for Mosul is almost over. What next?

According to the United Nations, the battle for Mosul has the potential to become one of the largest humanitarian disasters in history. They have warned that the 20,000 civilians trapped in the midst of the battle are in “extreme danger”.

Since the beginning of the offensive to retake Mosul, the Iraqi government says there are more than 850,000 civilians who are now internally displaced.

Below, is a map of the broader Mosul area illustrating which faction controls which area, and a map showing the city of Mosul with its most important roads, also indicating who controls which areas inside the city.