Fateh Khan, leader of the Barakzai tribe, installed many of his brothers in positions of power throughout the empire, mostly ruling as governors of major cities and provinces. After his murder for apparent treason against the Durrani king. Fateh Khan would be sentenced by Mahmud Shah Durrani, having him executed. His brothers rebeled and a civil war brew between the Sadozais and the Barakzais. During this turbulent period, Afghanistan had fractured into many states, this included the Principality of Qandahar, Emirate of Herat, Khanate of Qunduz, Maimana Khanate, and many more states. The most prominent state being the Emirate of Kabul, ruled by Dost Mohammad Khan after he declared himself emir and was bestowed upon the title of Amir al-Mu'minin in summer 1826 after he usurped the throne from his brother, Sultan Mohammad Khan. With the collapse of the Durrani Empire, and the exile of the Sadozai Dynasty to be left to rule in Herat while Afghanistan was in this turbulent period of civil war, Punjab and Kashmir were lost to Ranjit Singh ruler of the Sikh Empire, who invaded Khyber Pakhtunkhwa in March 1823 and captured the city of Peshawar, placing the Peshawar Sardars under his suzerainty. (one of the many entities that split following the collapse of the Durrani Empire), at the Battle of Nowshera. In 1837, Dost Mohammad Khan attempted to retake Peshawar and sent a large force under his son, Wazir Akbar Khan, leading to the Battle of Jamrud near the Khyber Pass. Akbar Khan and the Afghan army failed to capture the Jamrud Fort from the Sikh Khalsa Army, but killed Sikh Commander Hari Singh Nalwa, thus ending the Afghan-Sikh Wars. By this time the British were advancing from the east, conquering the Sikh Empire after it had its own period of turbulence following the death of Ranjit Singh, directly bringing the Emirate of Kabul to conflict in the first major conflict during "the Great Game". In 1839, a British expeditionary force marched into Afghanistan, invading the Principality of Qandahar, and in August 1839, seized Kabul, forcing Dost Mohammad into exile with other factions and rebels in Afghanistan, while he was replaced with the former Durrani ruler Shah Shuja Durrani as the new ruler of Kabul, and unbeknownst to him, a de facto puppet on the throne. Following an uprising that saw the assassination of Shah Shuja, the 1842 retreat from Kabul of British-Indian forces