Updated

Layers of hastily erected barricades built from rubble and twisted metal trace Mosul's eastern frontline where Iraqi forces and Islamic State group fighters are facing off in the dense neighborhoods and narrow alleyways of the country's second largest city.

As the operation to retake Mosul enters its second month on Thursday, Iraqi forces are preparing for prolonged, grueling urban combat.

They have slowed the tempo of their operations, advancing just a few hundred meters at a time. Iraqi forces have gathered troops many times the estimated 5,000 IS fighters in the city.

But hundreds of thousands of civilians still remain in the city. And the ferocity and magnitude of IS counterattacks and defenses in Mosul is unlike anything Iraqi forces have confronted in the fight against the militant group so far. As a result, overwhelming force can't bring swift victory, and the campaign is likely to take weeks.

THE EASTERN FRONT

Iraqi forces have advanced the furthest and faced the heaviest resistance in Mosul's east. Iraq's special forces say they control significant pockets of four of Mosul's easternmost neighborhoods: Zahra, Qadisiya, Tahrir and Gogjali. The territory measures less than a tenth of the city's total area.

Inside those neighborhoods, Iraqi forces are now surrounded by thousands of civilians as they continue to push to the city center. The presence of civilians has already thwarted the use of overwhelming air power to clear territory.

Iraqi officers say they also worry that IS supporters among the civilians are helping the group.

"We control all of this area," Iraqi special forces Maj. Ahmed Mamouri said, speaking in the Zahra district. "We've cleared the territory of fighters, but some of the civilians still support Daesh," he said using the Arabic acronym for the Islamic State group.

Mamouri said he believes IS supporters still living in this neighborhood are acting as spotters to aim mortar attacks and scout targets for suicide bombers. That forces his men to not only focus on the frontline fight, but also look backward and repeatedly screen the thousands living among his men's positions, supply lines and defenses.

When IS initially swept into Mosul in 2014 the group was met with significant popular support from residents, who are overwhelmingly from the Sunni Muslim minority that has long resented marginalization by the Shiite-dominated central government. That support has eroded under more than two years of harsh militant rule and dire living conditions, Iraqi and coalition officials believe.

A COMPLEX, BLOODY FIGHT AHEAD

Over the past year, Iraqi forces have slowly clawed back territory from IS. Facing a militant organization that proclaimed itself a state, Iraq's security forces battled IS with conventional military tactics: cutting supply lines, besieging cities and measuring victory in square kilometers.

In Mosul, Iraqi forces are undertaking a much more complex fight.

Mosul is not yet surrounded by Iraqi forces and has smuggling routes and supply lines with IS territory in Syria. Iraq has mobilized some 100,000 troops from the military, as well as tribal and militia fighters, to take on the estimated 5,000 IS fighters inside Mosul. Also, the U.S.-led coalition has deployed some 100 U.S. troops to Iraqi front lines to help. The coalition has also launched more than 4,000 airstrike the past month, mainly around Mosul, and provided Iraqi forces with surveillance and intelligence.

The individual tactics employed by IS mirror past fights: extensive tunnel systems, large, armored car bombs, snipers and small units of fighters left behind to fight to the death.

But the sheer scale of IS defenses and counterattacks in Mosul has stunned Iraq's military.

During a single week, Iraqi special forces Lt. Col. Muhanad al-Tamimi said more than 30 car bombs attacked his troops on Mosul's eastern edge. The U.S.-led coalition estimates that since the operation was formally announced, coalition airstrikes destroyed hundreds of meters of IS tunnel networks.

HUMANITARIAN FALLOUT

In past fights against IS in Ramadi and Fallujah, Iraqi ground forces emptied entire cities of their civilian populations, simplifying the battlefield.

In Mosul, a city more than five times the size of Ramadi, that's not an option. Aid groups warn that the massive displacement of those still living in Mosul would overwhelm humanitarian organizations and the Iraqi government.

Iraqi commanders responded by telling people to stay in their homes and wait out the fight. But aid groups and government agencies can't reach the thousands sheltering so close to the front line.

"We give them everything," said al-Tamimi, who commands one of the divisions leading the Mosul advance. He says his men distribute extra food and water to civilians when they can, but eventually the government needs to step in.

Convoys of black armored Humvees weave past small groups of civilians sitting on street corners and crowds lining up outside a handful of reopened shops. Hundreds of civilians also continue to flee daily from areas still under IS control, filing past front lines and holding white flags fashioned from scraps of fabric.

SOUTHERN AND WESTERN ADVANCES

Iraqi forces to the south, north and west of the city are struggling to cut supply lines and tighten their hold on the city.

On the city's southern approach, Iraqi forces advanced more than 40 kilometers (24 miles) over the past month, largely up the Tigris River valley. They are now preparing to launch an operation to retake Mosul's airport on the city's southern edge.

Over 60 kilometers (36 miles) west of Mosul, government-sanctioned Shiite militia forces are slowly working to surrounded the historically Turkmen town of Tal Afar, which sits on a key supply line linking IS-controlled territory in Iraq to the group's holdings in Syria.

ONE FAMILY'S STORY

Since the operation began, more than 56,000 civilians around northern Iraq have been forced from their homes, according to the United Nations.

Inside Mosul, thousands remain in neighborhoods retaken by government forces. But thousands more have been driven from their homes by the fighting.

Mahmoud and his family waited out weeks of airstrikes and shelling in Mosul's Qadisiya al-Thaniya neighborhood. Loud explosions that shook the house and broke windows became commonplace. Early in the operation, an airstrike destroyed a car bomb just two houses away.

"The shrapnel landed on the roof of our house and in the garden," he said. He spoke on condition only his first name be used, fearing for the safety of family still in IS-held parts of Mosul.

When clashes broke out on his street, Mahmoud decided to pick up and move a few blocks away from the frontline with his wife, children and their grandparents. Everyone packed small bags and waited until the fighting subsided at dawn to flee. Then just minutes after leaving their home, Mahmoud's father in law stepped on a booby-trapped explosive.

The blast killed him instantly. The rest of the family suffered shrapnel wounds. After the blast, Iraqi troops evacuated the entire family to a frontline field clinic on the city's outskirts.

"I haven't told my children yet that their grandfather is gone," Mahmoud whispered, his eyes welling with tears.

From here, he said he was told his family would be taken to a camp for displaced civilians to wait until it's safe to return.

"This war will be difficult," he said, "I don't expect to go home for at least a year."