|President of the Islamic Republic of Afghanistan|
|Member of||Cabinet of Afghanistan|
|Term length||5 years, renewable once|
|First holder||Mohammed Daoud Khan|
|Final holder||Ashraf Ghani|
|Deputy||Vice President of Afghanistan|
(15 August 2021 archive)
The president of the Islamic Republic of Afghanistan was constitutionally the head of state and head of government of the Islamic Republic of Afghanistan (2004–2021) and Commander-in-Chief of the Afghan Armed Forces.
On 15 August 2021, as the Taliban took over Kabul, President Ashraf Ghani fled Afghanistan and took refuge in the United Arab Emirates. After Ghani fled, the Taliban occupied the Arg presidential palace.