The position of Prime Minister of Afghanistan has existed since the Kingdom of Afghanistan. The position was appointed and later elected during the rule of the Barakzai dynasty until the Islamic State of Afghanistan. The post was abolished under the Islamic Emirate and Islamic Republic, but later reconstituted after the fall of Kabul in 2021.