Iran and Saudi Arabia have been bitter rivals for decades, vying to lead competing branches of Islam and standing on opposing sides of conflicts in Syria and Yemen.
But Tehran and Riyadh have taken major steps to de-escalate tensions and boost cooperation, a move that appeared unthinkable until recently.
The rapprochement has coincided with growing fears of an all-out war in the Middle East, where U.S. ally Israel is engaged in wars against Iranian-backed groups in the Gaza Strip and Lebanon.
The detente process has intensified since Donald Trump's decisive victory in the U.S. presidential election earlier this month. The president-elect has pledged to bring peace to the region.
"I don't view this as a warming of relations but rather as a cautious detente," said Talal Mohammad, associate fellow at the Britain-based Royal United Services Institute.
Reassuring Iran
The first signs of a thaw came in March 2023, when Iran and Saudi Arabia restored diplomatic relations after more than seven years following a surprise Chinese-brokered agreement.
But it was Israel's invasion of Gaza in October 2023 -- soon after the U.S.- and EU-designated Palestinian terrorist group Hamas carried out an unprecedented attack on Israel -- that gave real impetus to Iran-Saudi rapprochement efforts.
Since the war erupted, Iran and Israel have traded direct aerial attacks for the first time. The tit-for-tat assaults have brought the region to the brink of a full-blown conflict.
Saudi Arabia is "concerned that these escalating tensions between Israel and Iran could spiral out of control and lead to a broader regional conflict that may impact their interests," said Hamidreza Azizi, fellow at the German Institute for International and Security Affairs.
Azizi adds that Sunni-majority Saudi Arabia and Shi'a-dominated Iran are still "far from friends," despite the recent rapprochement, and they remain rivals vying for influence.
Over the past year, Saudi Arabia has stopped conducting air strikes in neighboring Yemen against the Iran-backed Huthi rebels. Riyadh has also made attempts to negotiate an end to the 10-year conflict pitting the Huthis against the Saudi-backed Yemeni government.
The Huthis have also ceased cross-border attacks on Saudi Arabia. In 2019, the rebels managed to shut down half of the kingdom's oil production.
The Trump Factor
Trump's victory in the November 5 presidential election has injected more urgency to the Iran-Saudi rapprochement, experts say.
Saudi Arabia's top general, Fayyad al-Ruwaili, made a rare trip to Iran on November 10 to meet Armed Forces Chief of Staff Mohammad Baqeri in what Iranian media dubbed "defense diplomacy."
The following day, Saudi Crown Prince Muhammad bin Salman accused Israel of committing "collective genocide" against Palestinians in Gaza and explicitly condemned Israel's attack last month on Iranian military sites.
SEE ALSO: Israel's Calibrated Attack On Iran Gives Both Countries An Off-RampAzizi says there are fears in the region that Trump's electoral victory will embolden Israel to intensify its attacks on Iran and Tehran's interests.
During Trump's first term in office from 2017 to 2021, his administration pursued a campaign of "maximum pressure" on Iran that included imposing crippling sanctions against Tehran.
At the same time, Trump struck a close relationship with Riyadh. He helped facilitate normalization between several Arab states and Israel under the so-called Abraham Accords.
SEE ALSO: Will Trump's Election Trigger An Iran Policy Of 'Maximum Pressure 2.0'?Before Israel launched its devastating war in Gaza, Saudi Arabia was reportedly on the verge of a historic deal to normalize relations with Israel.
Experts say that the Huthis' attacks in 2019 on Saudi oil facilities convinced Riyadh that Washington will not come to its aid if it is attacked.
"Given Trump's tendency toward unpredictable shifts in policy, Saudi Arabia may seek to play an influential role by encouraging Trump to adopt a balanced approach that ensures regional stability without triggering escalation with Iran," Mohammad said.
"By subtly guiding U.S. policy toward calibrated sanctions rather than aggressive pressure, Saudi Arabia could help maintain regional security while avoiding the risks of open confrontation," he added.
Israeli Normalization
Normalization talks between Saudi Arabia and Israel have been indefinitely postponed. Saudi officials have recently said that a deal was off until the establishment of an independent Palestinian state.
Mohammad says Riyadh has significant strategic incentives to normalize relations with Israel, including security and economic cooperation as well as access to U.S. nuclear and defense technology.
But analysts say Saudi Arabia will only resume talks when the Gaza war is over, given the current public sentiment in the Muslim world toward Israel.
"Normalizing relations without achieving tangible rights for Palestinians could weaken Saudi Arabia's normative influence within the Islamic world -- a position they are keen to maintain," Azizi argued.
The Saudis will also have to take into account Iran, which staunchly opposes Saudi normalization with Israel.
"Riyadh may consult with Tehran and seek assurances that normalization with Israel would not heighten hostilities or undermine the balance achieved through recent diplomatic outreach to Iran," Mohammad said.