Gates praised both nuclear-armed nations for their restraint in the wake of the Mumbai attacks, but cautioned that it might not hold.
Gates, who spoke during a visit to India, said no nation was immune from terror.
A syndicate of terror groups is working to sow violence and destruction across South Asia, and India and Pakistan need to work together to combat the mutual threat, US Defence Secretary Robert Gates said on Wednesday.