Barakzai dynasty
After the decline of the Durrani dynasty in 1823, Dost Mohammad Khan established the Barakzai dynasty. Dost Mohammad achieved prominence among his brothers through clever use of the support of his mother's Qizilbash tribesmen and his own youthful apprenticeship under his brother, Fateh Khan. However, in the same year, the Afghans lost their former stronghold of Peshawar to the Sikh Khalsa Army of Ranjit Singh at the Battle of Nowshera. The Afghan forces in the battle were supported by Azim Khan, half-brother of Dost Mohammad.