fallen back to Shah Shuja's hands, and he defeated Shah Mahmud near Qalati Ghilji. Instead of pursuing and attacking Kandahar, Shah Shuja returned to Peshawar to meet with a British East India company diplomatic mission. Return of Shah Mahmud Shah Shuja did not trust many of his advisors, this had included Akram Khan, where he had believed that they may have been in touch with his rival, Mahmud Shah Durrani. Akram Khan was deployed to the rebellion of Kashmir, rather not deploying him to deal with Shah Mahmud's march on Kabul, fearing he might defect. The Kashmir campaign would end in disaster, due to the kings ally, the mutawalli of Muzaffarabad, had sent his men through a difficult mountainous path, which as a result his lines were cut off and his force was annihilated. The situation was worsened for Shah Shuja as Mahmud had marched and occupied Kabul. Shah Shujah gathered the remnants of his army, and in June 1809, set out to Jalalabad to confront Shah Mahmud in battle. Mahmud Shah confronted Shah Shujah on the old Kabul-Jalalabad Road and defeated Shah Shujah, who was forced to flee following this defeat. He made multiple attempts to try to recapture the throne, but had given up and had fled to British India. Second Reign of the Durrani Empire With the victory of Shah Mahmud, Fateh Khan was re-appointed as wazir; he used this powerful position to dispose of his enemies and key governors, in turn he replaced them with close family of his, with his half-brother, Pur Dil Khan appointed as governor of Kandahar. Pur dil's full brothers were also appointed as governors of Ghazni, Bamyan, and Kalat. Pur Dil's youngest brother was also appointed as minister of foreign affairs to Shah Mahmud. Fateh Khan had also appointed his younger full brother, Mohammad Azim Khan, as governor of Peshawar. Shah Mahmud had also led a campaign with the Sikhs to try to recapture Kashmir. He forged an alliance with Ranjit Sing, the ruler of the Sikh empire, and had offered him half of the provinces revenues for military assistance. Ranjit Singh had then double-crossed Shah Mahmud, forcing Attock to submit to his authority. When Fateh Khan heard of this, he attempted to recapture the city, but was repulsed by the Sikhs. Shah Mahmud's alliance with the Sikhs had also brought unpopularity and strife, as the Sunni faction at his court,