After the fall of the Soviet-backed communist regime, Burhanuddin Rabbani, his father-in-law, chose him to be an advisor and special representative of the Islamic State of Afghanistan.
In December 2001, after the fall of the Taliban regime, President Hamid Karzai named him ambassador to the Russian Federation under Vladimir Putin.