Baghdad: It promises to be the biggest and perhaps last major battle against the Daesh group in Iraq.

Iraq’s government is setting its sight on Mosul, Iraq’s second largest city that has been under Daesh control since June 2014, as its next major target in the fight against Daesh. The assault is likely months away, but fierce fighting has already been raging as Iraqi forces try to clear the militants from villages and towns south of the city.

The goal is to protect the Qayara airbase, which was recaptured from the militants on July 9 and is to be a main hub for the final move on Mosul. Some 560 American military personnel, mainly engineers and logistics, security and communications experts, are due to deploy at the base to upgrade its facilities to prepare for the Mosul attacks, according to US Defence Secretary Ash Carter.

But that can’t happen yet because Qayara base has come under frequent rocket fire from Daesh fighters in the area. Around two-thirds of the surrounding towns and villages are controlled by Daesh fighters. Iraqi forces need to clear a 20-kilometre radius around the base and to retake the key nearby towns of Qayara and Shirqat, several Iraqi military officials told The Associated Press.

Iraqi forces already have driven the Daesh group out of the cities of Ramadi, Fallujah, Tikrit and Beiji west and north of the Iraqi capital, rolling back the jihadis’ dramatic blitz in the summer of 2014 that captured nearly a third of the country and linked with their territory in neighbouring Syria.

Retaking Mosul would be far more significant, robbing Daesh of the jewel of its self-declared caliphate. While the Syrian city of Raqqa is considered the caliphate’s de facto capital, Mosul is the largest city under its control, with a current population estimated at between 500,000 and 1 million. Daesh fighters in Mosul, meanwhile, vary from a few thousand to “not more than 10,000,” according to the coalition.

But the presence of hundreds of thousands of civilians in Mosul raises the prospect of a flood of people escaping — joining tens of thousands still displaced from previous fighting. The Geneva-based International Committee of the Red Cross said on Friday that up to 1 million Iraqis could be forced to flee their homes in the coming weeks amid worsening fighting. The group’s regional director for the Near and Middle East, Robert Mardini, said it is preparing for the worst, particularly in the Mosul area.

Already, a glimpse of the possible humanitarian crisis has emerged. Nearly 4,000 families have already fled their homes to escape ongoing fighting around the towns of Qayara and Shirqat. The government plans to house them in the town of Beiji to the south.

“The government is not prepared or equipped to deal with a humanitarian emergency,” said Hisham Al Hashimi, a prominent Iraqi analyst.

The civilians in the city also pose a challenge to Iraqi forces when they assault, said Ahmad Shawki, a retired Iraqi army colonel who is now a military analyst based in the Kurdish city of Arbil.

“Daesh will try its best to disappear among these people, in the civilian neighbourhoods of Mosul, to be safe from the air strikes and hide from the eyes of the intelligence services,” he said, using the Arabic acronym for Daesh.

Iraqi officials have estimated that upgrading the Qayara base could take four to six weeks, once the area around it is secured. Lt. Gen. Sean MacFarland, the top US commander in the fight against Daesh, said this month that the US personnel have already received warning orders to deploy and will flow in “relatively soon.”

The facility is believed to have been badly damaged by air strikes since the Daesh seized it in 2014. The work will include extending the two runways to allow large military transport aircraft to land. US and Iraqi fighter jets and helicopter gunships are also likely to be deployed there. Boasting more than 30 fortified hangars, the base was used by the US military between 2003 and 2010, when it handed it back to the Iraqis.

When operational, Qayara will join a string of bases jointly used by the Iraqis and the Americans in the fight against the Daesh. They include Makhmour east of Mosul, Taqaddum and Assad west of Baghdad and Taji just north of the Iraqi capital.

The actual assault may not take place until the late fall or winter, said the military officials.

“A lot of fighting has yet to be done and a lot of places must still be liberated before we head to Mosul,” said a brigadier general with the Iraqi army’s special forces who, like other military officials, spoke on condition of anonymity in line with regulations.

An official in Prime Minister Haider Al Abadi’s office said there was not yet a detailed plan for retaking Mosul. “For now, the plan is simply that Mosul is next,” he said, speaking on condition of anonymity because he was not authorised to speak to the media.

Al Hashimi, the analyst, estimated retaking Mosul would require 80,000 men, of whom 15,000 are expected to come from the government-sanctioned Shiite militias.

However, the Shiite militiamen, repeatedly accused of abuses against Sunni civilians, will not join the assault on the city and will instead focus on liberating Shiite areas in surrounding Ninevah province. Tal Afar, a mostly Shiite town some 70 kilometres west of Mosul, would be a likely target for the militias.

Kurdish peshmerga forces deployed to the east, west and north of the city are expected to assume a support role but not take part on the assault on Mosul as they had requested.

The United Nations has appealed for $284 million (Dh1.04 billion) to prepare for the likely waves of civilians fleeing the city. When Iraqi forces retook the western city of Fallujah in June, tens of thousands of residents who fled were housed in sprawling desert camps with little food, water or shelter. That drew sharp criticism from international relief groups and called into question the extent of the Shiite-led government’s commitment to effectively care for minority Sunnis.