ABC News July 4, 2017

ISIS is on the brink of defeat in Mosul, but a humanitarian crisis looms

WATCH: Mosul's battle zone full of destroyed buildings, roads

ISIS faces defeat in Mosul in northern Iraq, but a growing humanitarian crisis looms for survivors of the battle between the occupying terrorist group and members of Iraq's special forces.

ISIS controls less than a square mile of land in the city, and refugees are flowing out of that territory on foot, sometimes carrying severely wounded civilians with them as they escape.

ABC News reporters spoke to an injured boy lying in a bed at a sparse first-aid station who said that remaining ISIS soldiers were hoarding food, water and medicine as months of brutal fighting there approaches its climax.

ISIS fighters sometimes charge improbable rates for necessities, he told ABC News — the equivalent of $6 for a bottle of water and $80 for a package of crackers.

IBL/REX/Shutterstock
People flee through the alleys of Old Mosul, Iraq, July 2, 2017.

For many newly liberated refugees, the food and fluids they receive from first-aid stations set up outside ISIS-held territory is the first nutrition they've received in a long time, and children are treated for dehydration and undernourishment.

In final stages of Mosul fight, US plays larger role Video shows Iraqi forces retaking hospital from ISIS in Mosul

The fight to flee the city is complicated by the threat of suicide bombings; escapees are sometimes targeted by ISIS sympathizers.

Carol Guzy/ZUMAPRESS.com via Newscom
Civilians, many injured and weak, flee continued battle with ISIS in West Mosul amid ruins of the city, July 2, 2017 in Mosul, Iraq.

For that reason, displaced men and boys are sometimes stripped to ensure that they don't pose a threat to the men and women living outside ISIS-held territory.

Felipe Dana/AP
Iraqi civilians flee through an alley as Iraqi Special Forces continue their advance against Islamic State militants in the Old City of Mosul, Iraq, July 3, 2017.

Gen. Abdel Ghani al-Asadi, the head of Iraq's special forces, told The Associated Press that Iraqi forces are just 250 meters (about 275 yards) from the Tigris River after retaking the city's main hospital compound the day before, and he described the final stages of the conflict as a "fight to the death."

ABC News' Matt McGarry, Ian Pannell and The Associated Press contributed to this report.