Iraqi Prime Minister Al-Abadi declares victory over ISIS in Mosul

Mosul had been under ISIS control since the summer of 2014.

Troops from Iraqi Special Forces marked the victory by planting the Iraqi flag on the bank of the Tigris River.

"PM Al-Abadi arrives in Mosul to announce its liberation and congratulate the armed forces and Iraqi people on this victory," a description of the photo said.

Officials appear to be in concert regarding the much anticipated declaration:

Lt. Gen. Jassim Nizal of the army's 9th Division also announced that his forces achieved "victory" in their sector, prior to the arrival of Al-Abadi. A similar announcement was made by the militarized Federal Police, according to a report by the Associated Press.

His soldiers danced to patriotic music atop tanks even as airstrikes sent plumes of smoke into the air nearby, the AP reported.

ISIS beaten, but not gone

ISIS holdouts in western Iraq and Syria, as well as a number of other countries, may continue to attack and bomb targets in the city after Sunday's declaration of victory, according to ABC News' analysis.

The YPG has been fighting ISIS for years, and is now considered a battle-hardened opponent.

Based solely on Raqqa’s physical makeup, defeating ISIS there will likely be easier to accomplish than it was in Mosul, according to ABC News' analysis, and there is far less terrain to cover in the city.

A humanitarian crisis goes on

For now, the ongoing humanitarian crisis is affecting the survivors of both the fighting and occupation that took place in Mosul.

ISIS fighters sometimes charge improbable rates for necessities, or the equivalent of $6 for a bottle of water and $80 for a package of crackers, an escapee from the city told ABC News last week.

Over 897,000 people have been displaced by the fighting in Mosul, according to a report by the AP.

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