After graduating, he joined the Pakistan Navy in 1963, where he was educated at the Naval Academy (then known as PNS Rahbar), and did his military training with the Royal Navy in England. He participated well in the second war in 1965 and the Western front of the third war with India in 1971, where he served on the surface branch as surface officer in various surface warships.