Under Karmal's leadership, the Parchamite PDPA participated in Mohammad Daoud Khan's rise to power in 1973, and his subsequent regime. While relations were good at the beginning, Daoud began a major purge of leftist influence in the mid-1970s. This in turn led to the reformation of the PDPA in 1977, and Karmal played a role in the 1978 Saur Revolution when the PDPA took power. Karmal was appointed Deputy Chairman of the Revolutionary Council, synonymous with vice head of state, in the communist government. The 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 and eventually dismissed from his post. Instead of returning to Kabul, he feared for his life and lived with his family in the forests protected by the Czechoslovak secret police StB. The Afghan secret police KHAD had allegedly sent members to Czechoslovakia to assassinate Karmal. In late 1979 he was brought to Moscow by the KGB and eventually, in December 1979, 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, replacing him with Karmal.