He had an undistinguished career till the 1980s, when he caught the eye of Gen.Zia-ul-Haq and Gen. Mirza Aslam Beg.
Gen. Zia, who preferred devoutly Muslim officers in important positions, chose Musharraf for advancement as he was, like Gen. Zia himself, a devout Deobandi and was strongly recommended by the Jamaat-e-Islami.
The first assignment given by Zia to him was in the training of the mercenaries recruited by various Islamic extremist groups for fighting against the Soviet troops in Afghanistan.