India and Pakistan will work together to fight terrorism, the countries' prime ministers have announced.
Meeting in Egypt, they said the fight against their "main threat" should not be linked to wider peace talks.
However, India's Manmohan Singh later said no dialogue would start until those behind last year's attacks in Mumbai (Bombay) were "brought to book".
Relations between the two countries deteriorated after the attacks in which militants killed more than 160 people.
India has accused Pakistan-based fighters from the banned militant group Lashkar-e-Taiba of carrying out the attacks.
Pakistan has admitted they were partly planned on its soil - and vowed to do all it can to bring the suspects to justice.