Thousands of former residents are streaming back into the northern Syrian town of Manbij after the US-backed Syria Democratic Forces (SDF) ousted the last Islamic State (Isis) militants from their former stronghold. There were joyous celebrations as more than 2,000 civilian hostages, who had been used by Daesh as human shields, were rescued.

Men cut off their beards, women burned their niqabs and walked with their faces uncovered for the first time in more than two-and-a-half years, or defiantly smoked cigarettes; actions unthinkable under Isis rule.

Manbij Syria
A woman smokes as she rests after being rescued from an area of Manbij that had been controlled by DaeshRodi Said/Reuters
Manbij Syria
A woman sets fire to a niqab after she was rescued from an Islamic State-controlled neighbourhood of ManbijRodi Said/Reuters
Manbij Syria
A man cuts off the beard of a man who was evacuated from an Islamic State-controlled neighbourhood of ManbijRodi Said/Reuters

Under the extremists, women had to wear long black cloaks that covered all but their eyes, while all men were forced to grow beards. Smoking was banned. Some of the locals who were freed hugged their rescuers and recounted the horrors of life under Daesh, showing journalists areas reserved for executions.

Manbij Syria
A woman wearing a niqab embraces a Syria Democratic Forces fighter after she was evacuated from an Islamic State-controlled neighbourhood of ManbijRodi Said/Reuters
Manbij Syria
A carries a child as he walks out of an area of Manbij that had been controlled by IsisRodi Said/Reuters
Manbij Syria
A woman sits with a child after they were evacuated from an Islamic State-controlled neighbourhood of ManbijRodi Said/Reuters
Manbij Syria
Women walk past shattered buildings as they are evacuated from an area of Manbij controlled by IsisRodi Said/Reuters
Manbij Syria
Women carrying newborn babies are evacuated from an Islamic State-controlled neighbourhood of ManbijRodi Said/Reuters

The militants were finally chased out of Manbij after a deal was reached that secured their departure for Jarabulus, which is under the control of Isis and it is located on the Turkish border. They took with them around 2,000 civilians as human shields, so they could avoid the air strikes of the international coalition. However, after the Daesh members arrived in Jarabulus, a number of civilians managed to return to Manbij.

Once the city was liberated, hundreds of cars and vehicles carrying families and their belongings returned from makeshift camps and villages in the countryside. "Thousands are coming back and shops are opening. Today is the first day life is returning to normal," Sharfan Darwish, spokesman for the SDF-allied Manbij Military Council told Reuters, adding they were working to restore basic services.

Manbij Syria
A child looks out from a car as former residents of Manbij return to their homesDelil Souleiman/AFP
Manbij Syria
A member of Syrian Democratic Forces checks the documents of people returning to ManbijDelil Souleiman/AFP
Manbij Syria
A girl sits on possessions piled into the back of a truck as people return to ManbijDelil Souleiman/AFP
Manbij Syria
Syrian children sit in a cart loaded with belongings as they return to ManbijDelil Souleiman/AFP
Manbij Syria
Children sit on the back of a truck as people go back to their homes in ManbijDelil Souleiman/AFP
Manbij Syria
An Islamic State logo is painted on the gate of a school in Manbij that was used by jihadist fighters to manufacture explosives

The capture of Manbij is the biggest defeat for the extremist group in Syria since July 2015, when they lost the town of Tal Abyad on the border with Turkey. The capture of Tal Abyad deprived the militant group of a direct route to bring in new foreign militants or supplies. Manbij is important because it lies on a key supply route between the Turkish border and the city of Raqqa, the de facto capital of the IS group's self-styled caliphate.

The battle is understood to have claimed the lives of at least 437 civilians, 299 SDF fighters, and 1,019 IS fighters, according to the British-based Syrian Observatory for Human Rights. Manbij had been under IS control since January 2014, when the extremists evicted other Syrian militant groups from the town.