Barakzai dynasty
In 1823, Emir Dost Mohammad Khan, who belonged to the Barakzai tribe of Durranis, founded the Barakzai dynasty centered at Kabul. Thereafter, his descendants ruled in direct succession until 1929 when King Amanullah Khan, under whom Afghanistan gained independence over its foreign policy from the British Raj, was forced to abdicate and his cousin Mohammed Nadir Shah was later elected king. The Barakzai dynasty ruled present-day Afghanistan until 1973 when Mohammed Zahir Shah, the last Barakzai king, was overthrown in a bloodless coup by his cousin Mohammed Daoud Khan. The coup ended the Barakzai kingdom and established the Republic of Afghanistan (1973–1978).