Pakistan "warmly welcomed" the normalisation of diplomatic relations between Saudi Arabia and Iran facilitated by China, the Foreign Office said on Friday.
The two countries agreed to restore ties and reopen diplomatic missions in a surprise, Chinese-brokered announcement that could have wide-ranging implications across the Middle East.
In a trilateral statement, Iran and Saudi Arabia said they would reopen embassies and missions within two months and implement security and economic cooperation deals signed more than 20 years ago.
The FO, in a statement, said "Pakistan firmly believes that this important diplomatic breakthrough will contribute to peace and stability in the region and beyond".
The Pakistani government commended China's role in coordinating the historic agreement deeming its leadership visionary for the major feat which reflects the "power of constructive engagement and meaningful dialogue".
"We laud sagacious leadership of the Kingdom of Saudi Arabia and the Islamic Republic of Iran for this very positive development," the FO stated.
Pakistan said it will continue to play a constructive role in the Middle East and the region following its history of consistently supporting and coordinating efforts for bridging gaps between the two brotherly countries.
"We hope this positive step would define a template for regional cooperation and harmony," it further added.
Riyadh cut ties after Iranian protesters attacked Saudi diplomatic missions in 2016 following the Saudi execution of revered Iranian cleric Nimr al-Nimr — just one in a series of flashpoints between the two longstanding rivals.
Friday's announcement, which follows five days of previously unannounced talks in Beijing and several rounds of dialogue in Iraq and Oman, caps a broader realignment and efforts to ease tensions in the region.
"Following talks, the Islamic Republic of Iran and the Kingdom of Saudi Arabia have agreed to resume diplomatic relations and reopen embassies and missions within two months," said the joint statement, which was published by both countries' official media.
The detente between the two Muslim nations has the potential to reshape relations across a region characterised by turbulence for decades.
Iran and Saudi Arabia support rival sides in several conflict zones including Yemen, where the Huthi rebels are backed by Tehran and Riyadh leads a military coalition supporting the government. The two sides also vie for influence in Syria, Lebanon and Iraq.
— Additional input from AFP
PTI to present charter of demands in next round of talks with govt, says Barrister Gohar Ali Khan
Senior civil judge orders power company to pay Rs4.8 million in compensation to Azhan Siddiqui's family
PTI presents three demands — rule of law, freedom for prisoners, and judicial inquiries
Premier reiterates that country's nuclear capability was only defensive
Affected nurse seeks action against her family members who subjected her to violence
US State Dept spox says US "continues to call on Pakistani authorities to respect right to fair trial and due process"