QARA GHOILY: Flanked by shaggy-haired gunmen, commander Ghulam Farooq peered out from a hilltop at the biggest military prize of his storied career as a warlord — a mud-walled Afghan village captured after five years of Taliban control.

The village of Qara Ghoily in the remote northwestern badlands bordering Turkmenistan offers a rare glimpse into life under Taliban rule and encapsulates governance failures that have helped the militants gain ground against Nato-backed Afghan forces.

When Farooq, a powerful anti-Taliban militia commander in Faryab province, wrested control of the village in August after a scorched-earth offensive, he found a population deeply disaffected with the government despite years of hardline Taliban rule.

In this photograph taken on Oct 16, 2015, an Anti-Taliban armed Afghan commander Farooq (2R) speaks with AFP during an interview at his outpost during a patrol against Taliban insurgents at Qara Ghoily in Almar district of northern Faryab province.—AFP

“There,” said Farooq, pointing down to a patch of clay dirt surrounded by fields of wild grapevines and deserted village roads.

“The Taliban had no prison. They didn't need one. They beheaded all their prisoners over there."

They also kept a chokehold on social freedoms, a throwback to their 1996-2001 rule that made them international pariahs, including a ban on music, shaving of beards and hip Hollywood hairstyles.

Anti-Taliban armed Afghan fighters ride their motorbikes down a hillside during a patrol against Taliban insurgents at Qara Ghoily in Almar district of northern Faryab province.—AFP

But despite their austere vision of Islam, the Taliban shored up support by restoring a modicum of order in the village through an effective sharia-inspired judicial system, filling a vacuum left by a Western-backed government seen as inept and corrupt.

Unlike the official legal system, built with millions of dollars of foreign aid, the Taliban's informal court dispensed swift justice on all matters, from adultery to robbery.

And one thing in particular set them apart from government officials: they never demanded a bribe.

“If you go to a city court, the judge will take your money, the clerk will take your clothes and the guards will take whatever is left,” remarked a village resident, requesting anonymity for fear of retribution.

“People prefer to tolerate the cruelty of the Taliban than be robbed of justice and everything they own."

Anti-Taliban armed Afghan fighters eat watermelons on their outpost on a hilltop during a patrol against Taliban insurgents at Qara Ghoily in Almar district of northern Faryab province in this photo taken on Oct 16, 2015.—AFP

The testimony highlights the anguished choices faced by a population seemingly trapped between two evils and helps explain the insurgency's stunning rise despite a decade of costly Western intervention.

The Taliban remain largely unpopular in urban centres, but in many rural areas the puritanical movement has entrenched itself among alienated groups, competing directly with the government for public loyalty.

The Taliban now control more territory than in any year since they were toppled from power in a 2001 United States-led invasion, with the UN estimating that nearly half of all districts across Afghanistan are at risk of falling.

Nato-backed Afghan security operations that claim to kill scores of militants on a daily basis are causing the “displacement of the insurgency, not its eradication”, a Western official in Kabul told AFP.

The Afghan government has frequently lashed out at neighbouring Pakistan for nurturing the Taliban, while ignoring their local support base, which the official stressed cannot be uprooted by military force alone.

An Anti-Taliban armed Afghan fighter looks on as he sits in an outpost during a patrol against Taliban insurgents at Qara Ghoily in Almar district of northern Faryab province.—AFP

'Taliban's advantage'

“Insurgency is like a fever,” said Sarah Chayes, author of “Thieves of State: Why Corruption Threatens Global Security”, which looks at how Taliban propaganda appeals to graft-weary Afghans.

“Focusing only on violent insurgents might bring down the fever, but unless you treat the whole patient — by paying as much attention to improving governance — you will never durably stabilise the situation."

An anti-Taliban armed Afghan fighter rides a horse down a hillside with others during a patrol against Taliban insurgents at Qara Ghoily in Almar district of northern Faryab province.—AFP

Commander Farooq, 49, is part of a constellation of informal militia groups seeking to bolster Afghan forces struggling to beat back the lethal insurgency as they suffer record casualties and a growing spate of desertions.

Unregulated and unaccountable, such groups are often accused of banditry and predatory behaviour that in some areas has driven Afghans into the arms of the insurgents, seeking protection.

But Farooq, a Soviet-era warrior who fought alongside the legendary resistance fighter Ahmad Shah Massoud, styles himself as a formidable bulwark against the Taliban.

Anti-Taliban armed Afghan fighters look on as they sit inside an outpost during a patrol against Taliban insurgents at Qara Ghoily in Almar district of northern Faryab province.—AFP

Anti-Taliban armed Afghan fighters speak as they eat watermelons on their outpost on a hilltop during a patrol against Taliban insurgents at Qara Ghoily in Almar district of northern Faryab province.—AFP

He managed to do what government forces could not for five years — dislodge the Taliban from Qara Ghoily in an offensive that left an entire terraced hillock in the village gutted after being slammed by rockets.

The insurgents escaped on motorbikes, villagers recalled, planting landmines and booby traps in their homes and backyards as they fled.

Joining the Taliban exodus were around 60 families from the village of 2,000 people, which is hemmed between caramel-coloured hills that cut through a hotbed of insurgency.

Those who stayed back are distrustful of Farooq's forces, but also fear the wrath of the Taliban if they return. Pro-government forces have a poor track record of holding territory seized from the Taliban.

“I have assured them 'I will be with you when you harvest your grapes, when they shrivel into raisins, when you cook the sacrificial meat of Eid',” said Farooq, sporting a luxuriant silk turban.

“We are here to stay."

In this photograph taken on Oct 16, 2015, anti-Taliban armed Afghan fighters hold rocket-propelled grenades (RPG) as they ride their motorbikes down a hillside during a patrol against Taliban insurgents at Qara Ghoily in Almar district of northern Faryab province.—AFP

Farooq gazed from the edge of the wind-swept hill, surrounded by loyalist gunmen who were amused as their handheld radio crackled with the voice of an eavesdropping Taliban fighter hurling profanities and threats.

“It is hard to gain trust as the gap between the people and the government grows,” Farooq conceded, impassive to the chuckling. “That works to the Taliban's advantage."