The Islamic Republic of Afghanistan was a presidential republic that ruled Afghanistan from 2004 to 2021. The state was established to replace the Afghan interim (2001–2002) and transitional (2002–2004) administrations, which were formed after the 2001 United States invasion of Afghanistan that had toppled the partially recognized Taliban-ruled Islamic Emirate of Afghanistan. However, on 15 August 2021, the country was recaptured by the Taliban, which marked the end of the 2001–2021 war, the longest war in US history. This led to the overthrow of the Islamic Republic, led by President Ashraf Ghani, and the reinstatement of the Islamic Emirate under the control of the Taliban. The United Nations still recognizes the Islamic Republic as the legitimate government of Afghanistan instead of the Islamic Emirate, the de facto ruling government. The US–Taliban deal, signed on 29 February 2020 in Qatar, was one of the critical events that caused the collapse of the Afghan National Security Forces (ANSF). Following the deal, the US dramatically reduced the number of air attacks and deprived the ANSF of a critical edge in fighting the Taliban insurgency, leading to the Taliban takeover of Kabul.
Following the September 11 attacks, the United States and several allies invaded Afghanistan, overthrowing the Taliban's first government (which had limited recognition) in support of the opposition Northern Alliance. Afterwards, a transitional government was formed under the leadership of Hamid Karzai. After the 2003 loya jirga, a unitary presidential Islamic republic was proclaimed under a new constitution, and Karzai was elected for a full term as president. Meanwhile, the US-led international coalition helped maintain internal security, gradually transferring the burden of defense to the Afghan Armed Forces after 2013–14.
However, Taliban forces held control of various areas of the country and the civil war continued. The Taliban regrouped as an insurgency with the alleged support of Pakistan, and escalated attacks on Afghan and coalition forces after 2006–07. This perpetuated Afghanistan's problematic human rights and women's rights records, with numerous abuses committed by both sides, such as the killing of civilians, kidnapping, and torture. Due to the government's extensive reliance on American military and economic aid, some classed the nation as an American client state, and it gradually lost control of the rural countryside after the conclusion of Operation Enduring Freedom.
Following the withdrawal of NATO troops in 2021, the Taliban launched a massive military offensive in May 2021, allowing them to take control of the country over the following three and a half months. The Afghan National Army rapidly disintegrated. The institutions of the republic effectively collapsed on 15 August 2021, when the Taliban forces entered Kabul and Afghan President Ashraf Ghani fled the country. Soon after, former first vice president Amrullah Saleh declared himself the caretaker president of Afghanistan and announced the republican resistance against the Taliban.
History
In December 2001, after the Taliban government was overthrown, the Afghan Interim Administration under Hamid Karzai was formed. The International Security Assistance Force (ISAF) was established by the UN Security Council to help assist the Karzai administration and provide basic security. By this time, after two decades of war as well as an acute famine at the time, Afghanistan had one of the highest infant and child mortality rates in the world, the lowest life expectancy, much of the population were hungry, and infrastructure was in ruins. Many foreign donors started providing aid and assistance to rebuild the war-torn country.