Mosul: Iraq's prime minister declared victory over IS in Mosul on Monday, three years after the militants seized the city and made it the stronghold of a "caliphate" they said would take over the world.
"I announce from here the end and the failure and the collapse of the terrorist state of falsehood and terrorism which the terrorist Daesh (IS) announced from Mosul," Haider Al Abadi said in a speech shown on state television.
A 100,000-strong coalition of Iraqi government units, Kurdish Peshmerga fighters and sectarian militias launched the offensive to recapture the city from the militants in October, with key air and ground support from a U.S.-led coalition.
Abadi, wearing a black military uniform and flanked by commanders from the security forces, thanked troops and the coalition.
But he warned that more challenges lay ahead.
"We have another mission ahead of us, to create stability, to build and clear Daesh (IS) cells and that requires an intelligence and security effort, and the unity which enabled us to fight Daesh (IS)," he said before raising an Iraqi flag.
Abadi arrived in Mosul on Sunday to congratulate military commanders who have waged a nearly nine-month battle to recapture the city, many parts of which were reduced to rubble.
Gunfire and explosions could be heard earlier in the day as the last few ISpositions were pounded.
Abadi has been meeting military and political officials in Mosul in an atmosphere of celebration that contrasts with the fear that spread after a few hundred IS militants seized the city and the Iraqi army crumbled in July 2014.
IS leader Abu Bakr Al Baghdadi shocked the Middle East and Western powers shortly afterwards by appearing at the pulpit of Mosul's Grand Al Nuri Mosque to declare the caliphate and himself the leader of the world's Muslims.
In the aftermath of victory in Mosul, Abadi's government faces the task of managing the sectarian tensions there and elsewhere that enabled Islamic State to win support, and the threat of a wave of revenge violence in the city.
Baghdadi has fled the city and his whereabouts are unknown.
Reports have circulated that he is dead but Iraqi and Western officials say they cannot corroborate this.
His death or capture would not be the end of IS, which still controls areas south and west of Mosul and which is now expected to take to the desert or mountains to wage an insurgency.
The militants are expected to keep trying to launch attacks on the West and inspiring violence by "lone wolves" or small groups of the kind mounted recently in Britain, France and elsewhere.
But the loss of Iraq's second-largest city is a grave body blow to IS.
"The recovery of Mosul is a significant step in the fight against terrorism and violent extremism," said the spokesman for U.N. Secretary-General Antonio Guterres.
Jaafar Sadiq, a member of Iraq's counter-terrorism force, said military operations had been completed in Mosul's Old City, which saw heavy fighting in recent weeks as the extremists made their last stand.
IS is also under heavy pressure in its operational headquarters in the Syrian city of Raqqa.
The stench of corpses along Mosul's streets was a reminder of the gruelling urban warfare required to dislodge IS.
Much of the city of 1.5 million has been destroyed in the fighting, its centuries-old stone buildings flattened by air strikes and other explosions. One of IS' last acts was to blow up the historic Al Nuri mosque and its famous leaning minaret.
Thousands of people have been killed.
The United Nations says 920,000 civilians have fled their homes since the military campaign began in October.
Close to 700,000 people are still displaced.
"It's a relief to know that the military campaign in Mosul is ending. The fighting may be over, but the humanitarian crisis is not," said U.N. Humanitarian Coordinator for Iraq Lise Grande.
"Many of the people who have fled have lost everything. They need shelter, food, health care, water, sanitation and emergency kits. The levels of trauma we are seeing are some of the highest anywhere. What people have experienced is nearly unimaginable." Iraqi soldiers relaxed. Some swam in the Tigris river which runs through the city. One wiped the sweat from his face with an IS flag.