In 1826, the kingdom was claimed by Dost Mohammad Khan but in 1839 Shujah Shah Durrani was re-installed with the help of the British Empire during the First Anglo-Afghan War. In 1841 a local uprising resulted in the killing of the British resident and loss of mission in Kabul and the 1842 retreat from Kabul to Jalalabad. In 1842 the British returned to Kabul, demolishing the city's main ''bazaar'' in revenge before returning to British India (now Pakistan). Akbar Khan took to the throne from 1842 to 1845 and was followed by Dost Mohammad Khan.