CSS Prepare

The War in Afghanistan: 1979 to 2001

9 min read

The war in Afghanistan that began with the Soviet invasion of December 1979 is, in 2025, the longest continuous armed conflict in the modern world. For Pakistan, the war has been the single most consequential external event since 1971 — reshaping the country's economy, demography, security architecture, religious politics and external relationships. This lesson covers the first phase: from the Soviet invasion to the eve of 9/11.

The Afghan War (1979–present)

The continuing armed conflict in Afghanistan that began with the Soviet invasion in December 1979 and has continued — through multiple phases involving the Soviet occupation, the mujahideen war, the post-Soviet civil war, the Taliban regime, the US-led intervention, and the post-2021 Taliban government — for over four decades.

The war's spillover effects on Pakistan have been continuous, transformative, and often poorly managed.

Background: the 1973 coup and the PDPA

The trajectory toward war began with the 17 July 1973 coup in which Mohammed Daoud Khan, supported by elements of the People's Democratic Party of Afghanistan (PDPA), overthrew King Zahir Shah and established the Republic of Afghanistan. Daoud's increasingly authoritarian rule provoked his own overthrow in the Saur Revolution of 27 April 1978, which brought the PDPA itself to power under Nur Mohammed Taraki.

The new communist regime's aggressive secularisation programme — land reform, women's rights, anti-religious campaigns — produced widespread rural rebellion. Soviet aid increased through 1978–79, and after a series of internal coups within the PDPA (Taraki was deposed and killed by Hafizullah Amin in September 1979), Moscow concluded that direct military intervention was necessary to preserve the regime.

The Soviet invasion (December 1979)

Soviet forces entered Afghanistan on the night of 24–25 December 1979. Within days, Hafizullah Amin was killed and replaced with Babrak Karmal of the Parcham faction of the PDPA. Approximately 80,000 Soviet troops were deployed initially, reaching a peak of over 100,000 by the mid-1980s.

The invasion produced an immediate response from the United States, Pakistan, Saudi Arabia and China — what later became known as the Afghan jihad. By February 1980, the Carter administration had authorised covert CIA support to the Afghan resistance, channelled through Pakistan's Inter-Services Intelligence (ISI). Under the Reagan administration after 1981, this programme expanded dramatically.

Pakistan as the front-line state

The Zia-ul-Haq regime in Pakistan — which had come to power through the July 1977 coup — found itself, by accident of timing, in the role of front-line state of the Cold War's last great proxy war. The Soviet invasion transformed Pakistan's international position:

Key Points
  • From isolation to centrality: Pakistan had been internationally censured for the 1977 coup and the 1978 hanging of Z. A. Bhutto. The Soviet invasion made the country a vital US partner overnight.
  • Aid flows: the Reagan administration approved a $3.2 billion six-year aid package in 1981, followed by a $4.2 billion package in 1986. F-16 fighters were sold to Pakistan.
  • Refugee inflow: by 1990, over 3 million Afghan refugees had entered Pakistan, the largest single refugee population in the world at the time.
  • ISI's regional role: the Afghan jihad transformed ISI from a small domestic intelligence agency into a major regional player handling weapons, training and money flows for the mujahideen.
  • The Peshawar Seven: the seven main Afghan mujahideen parties — including those led by Gulbuddin Hekmatyar, Ahmad Shah Massoud (in Tajik areas), Burhanuddin Rabbani, Sayyaf and Khalis — operated from Peshawar with Pakistani support.

The cost to Pakistan was already substantial: heroin and weapons flows into Pakistan (the "Kalashnikov culture"), the strengthening of religious-political parties, the development of madaris networks producing future generations of militants, and the gradual militarisation of the Pashtun border areas.

The Soviet withdrawal (1988–89) and after

The Geneva Accords of April 1988, signed by Pakistan and Afghanistan with the US and the USSR as guarantors, provided for Soviet withdrawal — completed on 15 February 1989, when the last Soviet soldier crossed the Termez Bridge into Uzbekistan. The mujahideen had not been party to the Accords and rejected them.

But the war did not end. The PDPA government under Najibullah survived three more years, sustained by Soviet supplies until the USSR's own dissolution in December 1991. Kabul finally fell to a mujahideen coalition in April 1992, and Najibullah took refuge in the UN compound in Kabul (where he remained until his killing by the Taliban in September 1996).

The civil war (1992–1996)

The mujahideen victory did not produce peace. The Peshawar Accord of April 1992 distributed power among the various mujahideen parties, but the arrangement broke down within months. Kabul became a battlefield among:

  • Burhanuddin Rabbani's Jamiat-e-Islami (Tajik-led, including Ahmad Shah Massoud's faction)
  • Gulbuddin Hekmatyar's Hezb-e-Islami (Pashtun-led, backed by ISI)
  • Abdul Rashid Dostum's Junbish-e-Milli (Uzbek-led, formerly with Najibullah)
  • Hezb-e-Wahdat (Hazara-led, backed by Iran)
  • Various other smaller factions

The civil war of 1992–96 caused as many casualties in Kabul as the entire Soviet war. The city's centre was destroyed; over 60,000 civilians were killed; an estimated 2 million were displaced.

The Taliban (1994–2001)

The Taliban movement emerged in the religious schools of Kandahar and the Pakistani border regions in the summer of 1994, under the leadership of Mullah Mohammed Omar. The movement's initial appeal was simple: restoration of order and an end to the warlord predation that had characterised the post-mujahideen period. The Taliban took Kandahar in November 1994, Herat in September 1995, Kabul in September 1996 (executing Najibullah), and most of the country except the Panjshir Valley by 2000.

Pakistani support for the Taliban — political recognition (one of three states to extend it, with Saudi Arabia and UAE in 1997), economic links, intelligence cooperation — was driven by:

  • Strategic depth doctrine: a friendly Kabul as insurance against Indian-aligned regimes
  • Trade corridor logic: anticipated overland routes to Central Asia through a peaceful Afghanistan
  • Refugee return: hope that stability would enable Afghan refugees to return home
  • Ideological affinity: shared Deobandi religious tendencies

Costs accumulated: the Taliban's harbouring of Osama bin Laden (relocated from Sudan in 1996, after the failed Saudi attempt to expel him), the 1998 East Africa US embassy bombings, the 2000 USS Cole attack, and finally 9/11 — each of which placed pressure on Pakistan's continuing recognition of the Taliban regime.

We will not surrender Osama bin Laden. He is a guest of the Islamic Emirate. The proper Islamic procedure is for the Americans to bring evidence, and for that evidence to be examined by an Islamic court.

Mullah Mohammed Omar, in a 1998 BBC interview

The 9/11 trigger

The 11 September 2001 attacks produced an immediate US ultimatum to the Taliban: surrender bin Laden, dismantle al-Qaeda training camps, allow inspections, or face military action. The Taliban refused. Operation Enduring Freedom began on 7 October 2001. Within ten weeks, the Taliban regime in Kabul had collapsed. Pakistan's twenty-year Taliban policy was reversed in seventy-two hours.

The next lesson examines the post-2001 phase: the US war, the Pakistani internal counter-insurgency, and the 2021 transition.

For CSS answers on the Afghan war, master the four phases: 1979–89 (Soviet war), 1989–96 (civil war), 1996–2001 (Taliban regime), 2001–21 (US war). For each phase, identify the principal actors, the Pakistani role, and the spillover effects. This phase-by-phase organisation produces a structured, examinable answer.

The War in Afghanistan: 1979 to 2001 — Pakistan Affairs CSS Notes · CSS Prepare