Pakistan's president said on Wednesday that an attack by neighbour India 41 years ago made his Islamic nation realise that it should strengthen its defences "at all costs".
"Pakistan is a nuclear and missile power," President Pervez Musharraf said in a statement released to mark Defence Day.
"We are now a country having an impregnable defence". Defence Day commemorates a 17-day war with India over Kashmir.
Islamabad claims victory in the 1965 conflict, saying its forces foiled an attack by a much larger Indian army. India says Pakistan started the war in the disputed Himalayan region.
"The aggression that we faced 41 years ago made us conscious about the need to strengthen the defence of our country at all costs," Musharraf said.
"We realised that big countries seeking to impose their hegemony pay little heed to international laws and could violate the sanctity of borders of smaller neighbours with impunity," the military leader said.