Following the withdrawal of Soviet forces, Hamid Karzai returned to Afghanistan in early October 1988 to assist in the mujahideen victory in Tarinkot. He assisted in rallying Popalzai and other Durrani tribes to oust the regime from the city as well as helped negotiate the defection of five hundred of Mohammad Najibullah's forces. When Najibullah's Soviet-backed government collapsed in 1992, the Peshawar Accords agreed upon by the Afghan political parties established the Islamic State of Afghanistan and appointed an interim government to be followed by general elections. Karzai accompanied the first mujahideen leaders into Kabul after President Najibullah stepped down in 1992. He served as Deputy Foreign Minister in the government of Burhanuddin Rabbani. Karzai was, however, arrested by Mohammad Fahim (who would later become Karzai's Vice President) on charges of spying for Gulbuddin Hekmatyar in what Karzai claimed was an effort to mediate between Hekmatyar's forces and Rabbani's government. Karzai fled from Kabul in a vehicle provided by Hekmatyar and driven by Gul Rahman.