His tenure was abruptly ended when then-Chairman joint chiefs General Pervez Musharraf went onto impose martial law against Prime Minister Nawaz Sharif in 1999, and was appointed as Party President of Pakistan Muslim League (N), which he tenured until 2005.