The understanding came at a meeting between President Mamnoon Hussain and his Iranian counterpart Hassan Rouhani in Qingdao, China.
Both the leaders are on a visit to China to attend the SCO Summit.
President Mamnoon Hussain said connectivity between Gwadar and Chabahar ports will further strengthen Pak-Iran relations.
The President said Pakistan and Iran enjoy cordial fraternal relations and support each other on important matters.
The President welcomed the Iranian Supreme leader’s statement in support of Kashmiri people.
The two leaders also discussed matters pertaining to regional and international significance.
On the issue of Joint Comprehensive Plan of Action, President Mamnoon Hussain expressed the hope that all parties would continue to implement the agreement and uphold their commitments.
The two leaders also discussed current global situation and agreed on the need to focus on upholding principles and rules of international law and amicably resolving various global and regional crises through diplomacy and negotiations.
They emphasized that peace and stability in Afghanistan is important for both Pakistan and Iran.