He was re-elected to the National Assembly for the fifth time in the 1997 general election from constituency NA-52 (Rawalpindi-III) and was for the second time appointed as the Federal Minister for Petroleum and Natural Resources, where he served until he was dismissed in October 1999 after the coup d'état when then Chief of Army Staff, Pervez Musharraf, overthrew the elected government of Sharif. Khan was placed under house arrest for many weeks. It was during his tenure as Member of the National Assembly, he became the most powerful man in PML-N after Nawaz Sharif. Khan was also among Sharif's loyalists who kept the PML-N alive during the Musharraf rule.&lt;ref name="Dawn/march2013"&gt;&lt;/ref&gt; Musharraf was reportedly appointed as the Chief of Army Staff on the recommendation of Khan.