Pakistan's president promised yesterday to rid the country of terrorism and his prime minister said the military would not take action first in any face-off with India.

Relations between the nuclear-armed neighbours have deteriorated after India blamed Islamist militants based in Pakistan for the last month's attacks on Mumbai that killed 179 people.

In a sign of mounting tension, Pakistan has cancelled army leave and shifted some troops from its western border with Afghanistan to the eastern border with India.

Pakistan has condemned the Mumbai attacks and has denied any state role, blaming "non-state actors".

President Asif Ali Zardari, speaking at a ceremony to mark the first anniversary of the assassination of his wife, former prime minister Benazir Bhutto, said dialogue was the best way forward.

The South Asian neighbours both tested nuclear weapons in 1998. They have fought three wars since independence from Britain in 1947 and came to the brink of a fourth after gunmen attacked the Indian parliament in December 2001.

Although many analysts say war is unlikely, international unease is growing and the United States has urged both sides not to raise tension further. China and Iran have also tried to calm things down.

Earlier, Pakistani Prime Minister Yousaf Raza Gilani said Pakistan did not want war but was ready for one, although it would not be the first to act in any face-off with India.

"Our armed forces are...fully prepared but at the same time I assure you, once again, that we will not act. We will only react," Gilani told Muslim diplomats in Islamabad.

The movement of Pakistani troops off the Afghan border is likely to cause alarm in the United States which does not want to see its ally distracted from the battle against al Qaeda and Taliban militants.

Zardari, in comments he said were directed at both the United States and India, vowed to change Pakistan, which India has described as an epicentre of terrorism.

"We ourselves have accepted that we have a cancer...Yes, we will cure it. We will solve this problem," he said.

India, the United States and Britain have blamed the Mumbai attack on Pakistan-based Islamist group Lashkar-e-Taiba, set up by Pakistani agencies in the late 1980s to fight Indian rule in the disputed Kashmir region.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.