Sultan Ali Keshtmand torture and long imprisonment. He remained in prison and was sentenced to death, but this decision was revoked and he was resentenced to 15 years in prison. On December 1979, the Soviet Union invaded Afghanistan, bringing Babrak Karmal and the Parcham faction to power. Keshtmand was released from jail, and was once again joined the Politburo. Friction among the People's Party members rose in 1980 when Karmal removed Assadullah Sarwari from his position as First Deputy Chairman of the Council of Ministers and replaced him with Sultan Ali Keshtmand. Keshtmand, a Parchami, soon became one of the most important leaders
Babrak Karmal room, the Afghan defence minister and the state security minister visited Karmal's office, telling him that he had to resign from one of his posts. Understanding that his Soviet support had been eliminated, Karmal resigned from the office of the General Secretary at the 18th PDPA Central Committee plenum. He was succeeded in his post by Najibullah. Karmal still had support within the party, and used his base to curb Najibullah's powers. He began spreading rumors that he would be reappointed General Secretary. Najibullah's power base was in the KHAD, the Afghan equivalent to the KGB, and not the party.