Babrak Karmal Parchamite faction found itself under significant pressure by the Khalqists soon after taking power. In June 1978, a PDPA Central Committee meeting voted in favor of giving the Khalqist faction exclusive control over PDPA policy. This decision was followed by a failed Parchamite coup, after which Hafizullah Amin, a Khalqist, initiated a purge against the Parchamites. Karmal survived this purge but was exiled to Prague. Karmal remained in exile until December 1979, when the Soviet Union intervened in Afghanistan (with the consent of Amin's government) to stabilize the country. The Soviet troops staged a coup and assassinated Amin. Karmal had
Babrak Karmal campaign for Karmal's dismissal, but Andrei Gromyko discussed the possibility of Karmal's resignation with Javier Pérez de Cuéllar, the Secretary-General of the United Nations in 1982. While it was Gorbachev who would dismiss Karmal, there may have been a consensus within the Soviet leadership in 1983 that Karmal should resign. Gorbachev's own plan was to replace Karmal with Mohammad Najibullah, who had joined the PDPA at its creation. Najibullah was thought highly of by Yuri Andropov, Boris Ponomarev and Dmitriy Ustinov, and negotiations for his succession may have started in 1983. Najibullah was not the Soviet leadership's only choice for