In 1998, he moved to the Inter-Services Intelligence and briefly served its director in Islamabad and led the intelligence department while stationed in Islamabad. His tenure as an ISI director for Islamabad section witnessed key political events in the country, including the testing program in 1998, leading the ISI intelligence section during the Kargil confrontation in 1999, and the martial law in the country in 1999.