Pursuant to the Geneva Accords of 14 April 1988, the Soviet Union conducted a total military withdrawal from Afghanistan between 15 May 1988 and 15 February 1989. Headed by the Soviet military officer Boris Gromov, the retreat of the 40th Army into the Union Republics of Central Asia formally brought the Soviet–Afghan War to a close after nearly a decade of fighting. It marked a significant development in the Afghan conflict, having served as the precursor event to the First Afghan Civil War.
Mikhail Gorbachev, who became the General Secretary of the Communist Party of the Soviet Union in March 1985, began planning for a military disengagement from Afghanistan soon after he was elected by the Politburo. Under his leadership, the Soviet Union attempted to aid the consolidation of power by the People's Democratic Party of Afghanistan (PDPA); the Afghan president Mohammad Najibullah was directed by the Soviets towards a policy of "National Reconciliation" through diplomacy between his PDPA government and the rebelling Islamists of the Afghan mujahideen.