US-backed militias in Syria declared victory over Islamic State in its capital Raqqa today, raising flags over the last jihadist footholds after a four-month battle.

The fighting was over and the alliance of Kurdish and Arab militias was clearing the city's stadium of mines and any remaining militants, said Rojda Felat, commander of the Raqqa campaign for the Syrian Democratic Forces (SDF).

A formal declaration of victory in Raqqa will soon be made, once the city has been cleared of mines and any possible Islamic State sleeper cells, said SDF spokesman Talal Selo.

In Washington, the US military said that about 90% of Raqqa had been retaken from Islamic State but it expected the SDF to face pockets of resistance.

The fall of Raqqa, where Islamic State staged euphoric parades after its string of lightning victories in 2014, is a potent symbol of the jihadist movement's collapsing fortunes.

Islamic State has lost much of its territory in Syria and Iraq this year, including its most prized possession, Mosul. In Syria, it has been forced back into a strip of the Euphrates valley and surrounding desert.

The SDF, backed by a US-led international alliance, has been fighting since June to take the city which Islamic State used to plan attacks abroad.

A Reuters witness said militia fighters celebrated in the streets, chanting slogans from their vehicles.

Many of the 270,000 people who fled the fighting would likely be stuck in aid camps for months or years

The fighters and commanders clasped their arms round each other, smiling, in a battle-scarred landscape of rubble and ruined buildings around the main square.

The flags in the stadium and others waved in the city streets were of the SDF, its strongest militia the Kurdish YPG, and the YPG's female counterpart, the YPJ.

Fighters hauled down the black flag of Islamic State, the last still flying over the city, from the National Hospital near the stadium.

"We do still know there are still IEDs (improvised explosive devices) and booby traps in and amongst the areas that ISIS once held, so the SDF will continue to clear deliberately through areas," said Colonel Ryan Dillon, a spokesman for the coalition.

In a sign that the four-month battle for Raqqa had been in its last stages, Dillon said there were no coalition air strikes there on Monday.

Speaking with reporters in Washington later on Monday via video conference, Dillon said about 100 Islamic State fighters still remained in Raqqa.

"We expect our Syrian Democratic Force partners to hit pockets of resistance as the final parts of the city (are) cleared," Dillon added.

The fight for Raqqa has shattered much of the city. Houses, apartment blocks and public buildings were flattened by air strikes or holed by shellfire.

Today the international charity Save the Children said many of the 270,000 people who fled the fighting would likely be stuck in aid camps for months or years.

The SDF has said that after the Raqqa battle ends, it would hand over control to a civil council set up by its political allies. It echoes the pattern in other territory the YPG and its allies have taken across northern Syria.

Raqqa was the first big city Islamic State captured in early 2014, before its series of rapid victories in Iraq and Syria brought millions of people under the rule of its self-declared caliphate, which passed laws and issued passports and money.

On Tuesday, a military media unit run by Lebanon's Hezbollah said the Syrian army, which Hezbollah fights with, had pushed into the last Islamic State districts of Deir al-Zor city.

The only populated areas the jihadist group still controls in Syria are the towns and villages downstream of Deir al-Zor city along the Euphrates valley, areas that for the past three years Islamic State ran from Raqqa.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.