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
"Has world not seen, JI was number one in polls?" JI's Haifz Naeem asks
Zubair Anjum's brother says police and plainclothes personnel stormed their house brandishing guns
Despite aggressive behaviour of ‘Afghan’ national, former army chief kept his cool and ignored him
"District magistrate issued detention orders 'while excessively using his lawful authority'," observes high court
PM Shehbaz Sharif says regulations would kick start Pakistan’s “journey to reduce plastic waste”
"On Jahangir Tareen’s issue N-League should remain calm as their vote bank will remain intact," says interior minister