Kandahar: Matiullah Khan and Mohammad Aywaz were each dug in, their property dispute in southern Afghanistan at an impasse.

Despite paying more than $1,000 (Dh3,673) apiece in lawyer fees, they found no resolution in the government’s court system. The tribal courts, informal networks of elders that most rural Afghans rely on, had also come up short.

So the two men did what a growing number of Afghans do these days when there is no other recourse: They turned to the Taliban. Within a few days, their problem was resolved — no bribes or fees necessary.

“He would have kept my house for himself if it wasn’t for the Taliban,” said Khan, a resident of Kandahar City who accused Aywaz of commandeering his home. “They were quick and fair.”

Frustrated by Western-inspired legal codes and a government court system widely seen as corrupt, many Afghans think the militants’ quick and tradition-rooted rulings are their best hope for justice. In the Pakistani cities of Quetta and Chaman, havens for exiled Taliban figures, local residents describe long lines of Afghans waiting to see judges.

“You won’t find the same number of people in the Afghan courts as you do in the Taliban courts,” said Hajji Khudai Noor, a Kandahar City resident who recently settled a land dispute through the Taliban in Quetta. “There are hundreds of people waiting for justice there.”

From the beginning of the international military mission in Afghanistan, analysts and experts considered establishing a fair and respected justice system central to quelling the insurgency, in an acknowledgement that the Taliban’s appeal had long been rooted its use of traditional rural justice codes. The Obama administration considers a rejuvenated Afghan justice system an important legacy as it seeks to close the US-led chapter of the war.

But after more than a dozen years and a billion dollars spent by Western countries trying to build up the government system, it stands largely discredited and ridiculed by everyday Afghans. A common refrain, even in Kabul, is that to settle a dispute over your farm in court, you must first sell your chickens, your cows and your wife.

Countless training programmes funded by Western allies for lawyers and judges became bywords for waste. Laws suited to Western-style democracies populated the books, bearing little resemblance to the justice most Afghans desired.

“Everyone was looking for a quick win,” said one senior Western official who has worked on the judicial system in Afghanistan, speaking on the condition of anonymity to avoid offending aid donors. “A lot of training was done. In 2009, some of these donor countries would pay a stipend that amounted to double a prosecutor’s daily salary just to get them to show up.”

Recognising that informal tribal law would remain the choice for most Afghans, the United States in recent years began spending money to support those local councils. President Ashraf Gani made cleaning up the judiciary one of his first pledges in office, but that will be a daunting task. According to a poll released by Gallup in October, just 25 per cent of Afghans expressed confidence in the nation’s judicial system.

The Taliban have seized on this discontent. In some areas, they have set up mobile courts to reach villages outside their zones of influence. They hold hearings two days a week in the southern borderlands, requiring plaintiffs to produce evidence and witnesses. In Kunar, Taliban legal experts embed with militant commanders to provide services to locals and the fighters.

While few Afghans recall the Taliban rule from 1996 to 2001 with any fondness, the lack of corruption in justice then was seen by some as a strong suit. Bribes were uncommon. The power of litigants and their extended clans mattered less. The implementation of Sharia, or at least the rural Afghan version of it, was standard.

But the brutality at the heart of Taliban justice has not been forgotten. Mass public executions were common. Minor offences, like cutting beards short or listening to music, could be punished with fierce beatings. Yet some Afghans still think the government justice system is so bad that the Taliban look better by comparison.

“There are no people who think that government justice is better than the Taliban’s,” said Amanullah, a schoolteacher from the Andar district of Ghazni. “Even if someone feels they have had their rights violated, there is an appeals procedure within the Taliban system.”

Yegan, a 65-year-old farmer in Kunduz, said he went to the Taliban to resolve a dispute with his sister over their inheritance.

He admits he did not want to share their father’s land. But after reviewing the case, the Taliban forced him to adhere to Quranic law and give her a share.

“I am happy now that I am clear with God,” he said. “If it were the government, I would have had to pay a bribe.”

Informal justice rarely treats women and children fairly, experts say. In some cases, disputes are still settled by exchanging women or girls.

But the government system is not doing much better. Lawyers complain about judges and prosecutors who do not know the law. Five men accused of rape in Paghman were hanged in October after a trial of only a few hours, highlighting a lack of due process.

There are some potentially simple fixes, especially among the personnel.

Consider the district judge of Spinbaldak, a relatively populous area on the border of Kandahar and Pakistan deep in the country’s Pashtun heartland. Azizullah Rahman, the judge, does not speak Pashto, the dominant language there.

“I am trying to learn,” Rahman said as he sat in the newly constructed courthouse where he usually fields two or three cases a month. “But it is difficult to understand people sometimes.”

One of the biggest challenges for any justice system is enforcing rulings. The Taliban have a reputation for effective and immediate enforcement, if often by brutal methods.

This record of follow-through enticed Khan, the Kandahar landowner, to seek the Taliban’s help in resolving his case against Aywaz.

The dispute concerned the ownership of land on the edge of Kandahar City. Khan had built a house on the plot and was renting it to Aywaz. But shortly after moving in, Aywaz told Khan he would not be leaving — ever. He claimed that before Khan built the house, the land belonged to him.

After giving up on the Afghan courts, they referred the matter to tribal elders, who agreed that Khan owned the property.

But Aywaz refused to acknowledge the decision.

Khan turned to the Taliban. The men brought their evidence and witnesses to a house in the border town of Chaman and presented their case.

Three hours later, the Taliban judges came back with a verdict in favour of Khan. They told Aywaz that simply placing a small sign on the land, which he claimed gave him ownership, did not establish possession.

Surprisingly, Aywaz was not bitter about the result.

“The Taliban took my land from me, but to be honest, I didn’t understand how Sharia worked,” Aywaz said. “Now, logically looking at it, when they told me I needed to build a proper building, it makes sense to me.”