Once he became the COAS, Musharraf was in his true elements. He started challenging the authority of PM Nawaz Sharif. The relationship became so strained that Musharraf overthrew the Sharif government and imposed army rule in Pakistan. Musharraf ruled Pakistan from 1999 to 2008.