Indian PM Narendra Modi has accepted an invitation from his Pakistani counterpart Nawaz Sharif to attend a regional summit in Islamabad next year.
This will be Mr Modi's first visit to Pakistan after he took power last year.
A meeting between the two leaders on Friday came after increased border hostilities and India cancelled secretary-level talks last year.
They also agreed to help expedite the 2008 Mumbai terror attack trial, blamed on Pakistan based militants.
The suspected mastermind of the attacks, Zakiur Rehman Lakhvi, was released on bail from a Pakistani jail in April, a development that India described as "unfortunate and disappointing".
He still faces trial - along with six other suspects - over the attacks, which left 166 people dead and damaged peace efforts between the two countries.
In a separate development, Mr Modi accepted Mr Sharif's invitation to visit Pakistan.
"Prime Minister Nawaz Sharif reiterated his invitation to Prime Minister Modi to visit Pakistan for the Saarc (South Asian Association for Regional Cooperation) Summit in 2016. Prime Minister Modi accepted that invitation," a joint statement from the two governments said.
Indian Foreign Secretary S Jaishankar told reporters that the two sides had also agreed to hold a meeting of their top security advisers to discuss terrorism.
Friday's meeting was the first between the two leaders since Mr Sharif attended Mr Modi's oath taking ceremony in May 2014.
But relations between the nuclear-armed rivals deteriorated soon after and in August India cancelled talks with Pakistan after accusing it of interfering in its internal affairs.
(BBC)