He was renowned for being the commander of the submarine PNS "Ghazi" during the second war with India in 1965, for which he was decorated. In 1979, he took over the command of the Pakistan Navy as its Chief of Naval Staff and worked in close coordination with President Zia-ul-Haq on the matters of national security throughout the 1980s.