Najibullah Ahmadzai (Pashto/Persian: نجیب ﷲ احمدزی); 6 August 1947 – 27 September 1996), commonly known as Najibullah or Dr. Najib, was the President of Afghanistan from 1987 until 1992, when the mujahideen took over Kabul. He had previously held different careers under the People's Democratic Party of Afghanistan (PDPA) and was a graduate of Kabul University. Following the Saur Revolution and the establishment of the Democratic Republic of Afghanistan, Najibullah was a low profile bureaucrat: he was sent into exile as Ambassador to Iran during Hafizullah Amin's rise to power. He returned to Afghanistan following the Soviet intervention which toppled Amin's rule and placed Babrak Karmal as head of state, party and government. During Karmal's rule, Najibullah became head of the KHAD, the Afghan equivalent of the Soviet KGB. He was a member of the Parcham faction led by Karmal.