The Afghan conflict (Pashto: دافغانستان جنګونه; Dari: درگیری افغانستان) is the series of events that have kept Afghanistan in a near-continuous state of armed conflict since the 1970s. Early instability followed the collapse of the Kingdom of Afghanistan in the largely non-violent 1973 coup d'état, which deposed Afghan monarch Mohammad Zahir Shah in absentia, ending his 40-year-long reign. With the concurrent establishment of the Republic of Afghanistan, headed by Mohammad Daoud Khan, the country's relatively peaceful and stable period in modern history came to an end. However, all-out fighting did not erupt until after 1978, when the Saur Revolution violently overthrew Khan's government and established the Democratic Republic of Afghanistan. Subsequent unrest over the radical reforms that were being pushed by the then-ruling People's Democratic Party of Afghanistan (PDPA) led to unprecedented violence, prompting a large-scale pro-PDPA military intervention by the Soviet Union in 1979. In the ensuing Soviet–Afghan War, the anti-Soviet Afghan mujahideen received extensive support from Pakistan, the United States, and Saudi Arabia in a joint covert effort that was dubbed Operation Cyclone.
Although the Soviets withdrew from Afghanistan in 1989, the various mujahideen factions continued to fight against the PDPA government, which collapsed in the face of the Peshawar Accord in 1992. However, the Peshawar Accord failed to remain intact in light of the mujahideen's representatives' inability to reach an agreement on a power-sharing coalition for the new government, triggering a multi-sided civil war between them. By 1996, the Taliban, supported by Pakistan's Inter-Services Intelligence, had seized the capital city of Kabul in addition to approximately 90% of the country, while northern Afghanistan remained under the authority of the anti-Taliban Northern Alliance. During this time, the Northern Alliance's Islamic State of Afghanistan enjoyed widespread international recognition and was represented at the United Nations, as opposed to the Taliban's Islamic Emirate of Afghanistan which only received diplomatic recognition from three nations. Despite the fall of Kabul to the Taliban, the Northern Alliance continued to resist in another civil war for the next five years.