 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.