Soviet–Afghan War had been sympathetic to the PDPA cause, overthrew and executed Daoud along with members of his family. Nur Muhammad Taraki, Secretary General of the PDPA, became President of the Revolutionary Council and Prime Minister of the newly established Democratic Republic of Afghanistan. After the revolution, Taraki assumed the Presidency, Prime Ministership and General Secretaryship of the PDPA. The government was divided along factional lines, with President Taraki and Deputy Prime Minister Hafizullah Amin of the Khalq faction against Parcham leaders such as Babrak Karmal and Mohammad Najibullah. Within the PDPA, conflicts resulted in exiles, purges and executions of Parcham members.
Prime Minister of Iran and chose Mohammad Ali Rajai as his prime minister, mainly because of pressures imposed by Majlis representatives, specially those close to Islamic Republic Party. Rajai served in the post until Banisadr's impeachment in June, 1981, and was elected as president in the elections of July 24, 1981. Rajai chose Mohammad Javad Bahonar as his prime minister, but they were assassinated together in Prime Minister's office only a few weeks later, on August 30, 1981. When Ali Khamenei became president in the elections of October, 1981, he first introduced right-leaning Ali Akbar Velayati to the Majlis as his prime minister, but