After Raqqa's liberation, 'a tough fight still lies ahead' against ISIS

Raqqa was once the "capital" city of ISIS's self-declared caliphate.

Syrian Democratic Forces, who fought for months to reclaim the city, celebrated in Naim Square this week -- driving trucks and waving flags in the same place where ISIS had once beheaded its opponents. It was in Raqqa where ISIS fighters planned devastating attacks in Paris, Brussels, Nice, Manchester and beyond.

Despite the military's victory, there is still much to be done in Raqqa, from securing the city and restoring essential services to combating the last pockets of ISIS in eastern Syria and western Iraq. More broadly, the group's global network of finance, recruitment, and plots must be dismantled.

ABC News breaks down what is next in the fight against ISIS following Raqqa's liberation.

Returning life to Raqqa

The U.S. has an expert team of civilians deployed from the U.S. Agency for International Development (USAID), and they are working with partner NGOs to remove those weapons. Many of those devices have been placed by ISIS in homes and other buildings to kill as many returning civilians as possible. At one water treatment facility north of Raqqa, teams found approximately 240 explosive devices left behind, according to U.S. Special Envoy to the Global Coalition Brett McGurk.

After de-mining, rubble must be removed to clear the streets so that aid trucks can roll in, and utility services such as running water and electricity must be restored for the residents who come back. While this whole process has started -- and been underway in the areas outside Raqqa's center already -- it will take time.

Who's in charge?

One of the most difficult questions for the U.S. and its allies to answer is with ISIS out, who takes over? A legitimate and fair governing body is needed to secure the military's gains and prevent the same conditions that spawned ISIS's rise. It's also crucial that such a body supports local people and their needs.

The problem is that the Raqqa area is predominantly Arab, but the Syrian Democratic Forces that liberated the area with U.S. support have a large Kurdish contingent. While they are among the region's strongest fighting forces, they could potentially be seen by locals as an occupying power.

Instead, the U.S. is supporting a governing body of local officials known as the Raqqa Civilian Council, which was formed in May with around 100 Syrians from different ethnic groups who are all native to the area. By their own decree, they will rule until May 2018, when there will either be an election for a new council or some other group established.

"This is, like, the most difficult, complex thing imaginable, so this will be extraordinarily hard," McGurk told reporters in September, promising that "areas that are retaken from ISIS, they will be controlled by the local people who know the areas, pending a longer-term political settlement to the civil war."

While those actors push for the return of Assad's control, the Trump administration maintains that Assad has no future in Syria.

"We’ve made clear many times that we do not believe at the end of this process that Assad should remain, that he has lost his legitimacy and his right to rule," the U.S.'s top diplomat in the Middle East, David Satterfield, said September 18. "But that is a decision for the Syrian people to make."

The Trump administration has also set a new requirement on reconstruction efforts meant to keep Assad from consolidating power, vowing to withhold international funds from the U.S. and the Global Coalition if Assad were to return to power. But it's unclear whether that is enough leverage, given the support that Assad enjoys from stalwart allies like Russia and Iran.

Chasing ISIS in the Euphrates River Valley

As the SDF made progress in the fight for Raqqa, ISIS leadership, including their media operations and administrative bureaucracy, fled south into the middle Euphrates River Valley, an area in eastern Syria that will be "the final stand of ISIS," Lt. Gen. Stephen Townsend, the former commander of the coalition, predicted in August.

Most, if not all, "high-value targets" struck by the coalition this year have been in that area, and airstrikes continue in the region in border cities like Al Mayadin and Abu Kamal.

But, for now, all eyes are on the Syrian city of Deir ez Zor, where Russian-backed Syrian regime forces and their Iranian-backed allies are waging their own battle against ISIS -- creating a delicate tightrope for the U.S.-backed rebels to walk.

On September 9, the SDF announced that they were shifting forces north of that city to conduct Operation Jazeera Storm against ISIS in the Khabur River valley. But that campaign has proven particularly challenging due to the battle space's proximity to the Syrian forces in Deir ez Zor.

One week after the new operations began, a Russian airstrike hit and wounded several SDF. No U.S. troops, who were part of the coalition forces embedded with the SDF at the time, were injured, but the incident triggered the "highest levels" of Pentagon and State Department officials to communicate with their Russian counterparts.

In the days after, U.S. and Russian general officers met face to face for the first time to "adjust and expand deconfliction measures," Col. Ryan Dillon, spokesman for the coalition, told reporters. A second meeting was held in mid-October.

But as the battle space continues to shrink, it seems inevitable that the two sides will collide again as they close in on ISIS.

Challenging ISIS around the world

Even after the last pockets of ISIS are cleared in Iraq and Syria, the fight against the extremist group remains a global challenge.

ISIS has affiliated organizations in Africa, Yemen, the Philippines, Afghanistan, Libya, Bangladesh, and beyond. Those groups perpetrate attacks almost constantly.

In Niger, an attack on a patrol of U.S. and Nigerien forces killed four U.S. soldiers and wounded two others. The Oct. 4 attack once again highlighted ISIS's presence in West Africa.

In other countries, like Afghanistan, the fight against ISIS groups is more well-known. The U.S. has increased its troop presence in Afghanistan by about 3,000 to align with the Trump administration's new "South Asia Strategy" and combat ISIS and the Taliban there.

Even in places without formal ISIS-affiliated groups, ISIS can promote their ideology online and inspire individuals around the globe to commit one-off attacks like those seen in San Bernardino and Orlando in the United States. Senior Pentagon officials refer to this as ISIS's "virtual caliphate," which they have said can only be countered in cyberspace.

But while the physical caliphate collapses, a virtual caliphate could prove impossible to completely eradicate.