Question: What dynasty was founded by one of the prominent rulers of Afghanistan during the First Anglo-Afghan War, who had a  dispute with former emir Shah Shujah hom they installed upon conquering Kabul in August 1839?
Sentence (from "Dost Mohammad Khan (Emir of Afghanistan)"): With the decline of the Durrani dynasty, he became Emir of Afghanistan from 1826 to 1839 and then from 1843 to 1863.
Relevant evidence: No