Thirty-four people, mostly women and children, who escaped from the clutches of Islamic State thugs in Iraq are seen making their way to freedom in a new documentary.

The UK’s Channel 4 captured the emotional scenes in “Escape From ISIS,” which documented the underground network that freed the Yazidis – who walked for two days after eight months as sex slaves.

The documentary will air Tuesday night on PBS stations and online at 10 p.m. ET.

Local lawyer Khaleel al-Dakhi organized the rescue mission by resistance fighters, the Daily Mail reported.

Islamic State kidnapped more than 3,000 girls from the persecuted minority sect in northern Iraq almost a year ago.

The show’s director, Edward Watts, told the paper that the Yazidis had been treated as “subhuman” by the militants, who believed they were “devil worshippers.”

“They’re desperate to get their hands on a mobile phone and when they do they call their families and tell them, ‘I’m alive,’” he said.

Watts said the rescuers have a “network of guys inside ISIS” territory.

“They identify where the girls are being held, go in and grab the girls and take them across the frontline,” he said.

Up to 500 women have been rescued in total, but not all missions are successful.

Two rescuers have been killed as a result of a trap set by the extremists, the paper reported.

“They got a woman under duress to call up and say, ‘I’m in this house. Can you come and rescue me? The guy holding me is away,’ when, in fact, it was a trap,” Watts said.

“These two guys turned up, ISIS caught them and they were stoned to death,” he said.