Barakzai dynasty
The Emirate of Afghanistan ( ""; ")" was an emirate between Central Asia and South Asia, which is now today's Afghanistan and some parts of Pakistan (before 1893). The emirate emerged from the Durrani Empire, when Dost Mohammed Khan, the founder of the Barakzai dynasty in Kabul, prevailed. The history of the Emirate was dominated by 'the Great Game' between the Russian Empire and the United Kingdom for supremacy in Central Asia. This period was characterized by the European influence in Afghanistan. The Emirate of Afghanistan continued the war with the Sikh Empire, which led to the First Anglo-Afghan War by British forces. The war eventually resulted in victory for Afghans with the British withdrawal and Dost Mohammad being reinstalled to the throne. However, during the Second Anglo-Afghan War (1880), the British defeated the Afghans and this time the British conquered many Afghan territories within modern-day Pakistan and took control of Afghanistan's foreign affairs until Emir Amanullah Khan regained them after the Anglo-Afghan Treaty of 1919 was signed following the Third Anglo-Afghan War.