This policy backfired badly when in 1808 Shah Mahmoud managed to escape and join forces with Shuja’s greatest enemies, the rival Barakzai clan. The feud between the two clans, the Barakzais and the Sadozais, was already bitter and bloody, and was soon to cause a conflict that would ravage the whole country, dividing the tribes and providing a range of opportunities for the neighbouring powers to intervene.