Afghan President Ashraf Ghani says he will visit Pakistan on June 27 to open a new chapter in his country's uneasy relationship with its neighbor and mend ties that are often characterized by mistrust and tit-for-tat accusations.

In his message to mark Eid al-Fitr, the Muslim holiday that caps the fasting month of Ramadan, Ghani said he agreed to visit Pakistan's Prime Minister Imran Khan after the two leaders met last week on the sidelines of the Organization of Islamic Cooperation meeting in Saudi Arabia.

"I hope the visit will be positive," Ghani said.

Kabul routinely accuses Pakistan of harboring its Taliban enemies, yet in recent months Islamabad has lent its support to U.S. efforts to broker an end to Afghanistan's long-running war.