In 1971, he was promoted to commodore and temporarily held the rank of rear-admiral to assume the Submarine Command during the third war with India. In 1972, Commodore Niazi assumed the command of the Pakistan Fleet before being selected to attend the National Defence University in Islamabad to complete a master's degree in strategic studies, also in 1972.