BEIRUT (AP) — Saudi Arabia's powerful crown prince relies on a small core group of advisers, none more provocative than Thamer al-Sabhan, the fiercely anti-Iran government official whose fingerprints were on the hurried and ultimately unsuccessful resignation of Lebanon's prime minister earlier this month.

As Saudi minister for Gulf affairs, al-Sabhan has a hand in helping shape the kingdom's high-stakes gambles to counter rival Iran.

For days before Lebanese Prime Minister Saad Hariri's surprise resignation, which the kingdom is widely believed to have orchestrated, al-Sabhan issued threats against Lebanon's government as well as Iran and its ally Hezbollah via Twitter, unnerving many Lebanese who feared being dragged yet again into the forefront of the Saudi-Iran rivalry for regional supremacy.

Three months earlier, al-Sabhan had been sent to Beirut to meet with Hariri and deliver a blunt warning against concessions that could favor Iran's allies in Lebanon.

Hariri's resignation, announced from Riyadh on Nov. 4 on a Saudi-owned TV station, seemed to confirm fears that the kingdom's rivalry with Iran could destabilize yet another country in the region, this time Lebanon's delicate power-sharing system. Mediation by France, a close ally of both Saudi Arabia and Lebanon, helped reverse the resignation, which Hariri suspended after his return to Beirut.

Though Saudi Arabia may have succeeded in pressuring Hezbollah and bringing attention to the Shiite militant group's expanding regional footprint, the kingdom's political moves in Lebanon were largely seen as a debacle that backfired.

The 50-year-old al-Sabhan was at the center of it all.

Al-Sabhan travelled in March to Washington with Mohammed bin Salman, who in July was named crown prince and heir to the Saudi throne. It was a pivotal visit that would cement Riyadh's relationship with the newly inaugurated President Donald Trump.

A subsequent trip to Washington earlier this month, however, didn't go as well. Days after Hariri's resignation, al-Sabhan met with officials from the State Department, Pentagon and the White House National Security Council.

Instead of raising support for the resignation, al-Sabhan was given an earful from U.S. officials who chided him and pressed him to stop his provocative tweets, according to Arab media reports and a person privy to the meeting's outcome, who spoke on condition of anonymity because he wasn't authorized to discuss the encounter. They also asked who gave al-Sabhan the right to undermine Lebanon's stability at a time when Washington was backing the Lebanese armed forces and the country was hosting more than a million Syrian refugees.

The 32-year-old Saudi crown prince's hawkish policies toward Iran are largely embodied and amplified in al-Sabhan. Nowhere is that spelled out more clearly than on Twitter, where al-Sabhan has referred to the Iranian-backed Hezbollah — which means "Party of God" in Arabic — as the "Party of Satan."

A few days before Hariri's resignation, al-Sabhan warned in an interview with a Lebanese TV station that there would be "astonishing" developments to topple the Shiite militant group in Lebanon. He also said that Lebanon's government — headed by Hariri — would be dealt with as a hostile government that's declared war against Saudi Arabia because of Hezbollah's power-sharing role.

"It is up to (Lebanon's) leaders to decide whether it is a state of terror or peace," al-Sabhan wrote on Twitter two days after Hariri's resignation.

Al-Sabhan, who as Saudi Arabia's military attaché in Lebanon in 2014 and 2015 monitored Hezbollah, was fed information by some Lebanese politicians about the group's role in the Syrian civil war, according to a Lebanese man who frequently spoke with al-Sabhan during his time in Beirut.

Al-Sabhan would often chat with politicians, journalists and businessmen at a cafe in Beirut's upscale Verdun neighborhood, said the man, who spoke on condition of anonymity to discuss the private conversations.

"He is a tightlipped person. He listens more than he talks," the Lebanese man said.

After his stint in Lebanon, al-Sabhan was appointed Saudi Arabia's first ambassador to Iraq in more than 25 years.

But just nine months into the job, Iraq's government demanded that al-Sabhan be replaced after he sparked an outcry for alleging the government refused to provide him better protection in the face of what he claimed were plans by Iranian-backed Shiite militia groups to assassinate him. He also called on Iraq's government to exclude Shiite paramilitary groups from the military campaign against the Islamic State group.

Al-Sabhan was recalled and appointed to his current ministerial post, where he has used Twitter to vocalize the kingdom's brash anti-Iran rhetoric.

He's also been sent on missions far and wide. He was spotted last month in the Syrian city of Raqqa with a U.S. official after the Islamic State group's de facto capital was recaptured by Syrian U.S.-backed and Kurdish-led forces.

In Saudi Arabia, al-Sabhan has sat in on high-level meetings and welcomed Lebanon's Maronite patriarch when he visited the conservative Sunni Muslim country in a first ever such trip. He was also present at the patriarch's meeting with King Salman.

Al-Sabhan has also sat in on the king's meeting with Turkey's foreign minister in June, the crown prince's meeting in August with influential Iraqi Shiite cleric Muqtada al-Sadr and meetings with Iraq's Prime Minister Haider al-Abadi.

On Twitter, al-Sabhan has openly tried to call the shots in Lebanon, demanding that Hezbollah be kicked out of the government and calling on the Lebanese to confront the militant group. He even got into a Twitter spat with Hezbollah leader Sheikh Hassan Nasrallah.

In one of the Hezbollah leader's speeches, he described al-Sabhan as "zaatout," a derogatory Arabic term that means variously "little monkey with lots of hair" or an "adult who behaves like a child."

Al-Sabhan responded with a tweet of his own. "If an incompetent man criticizes me, this is proof that I am a whole man," he wrote.

Former Lebanese Cabinet Minister Wiam Wahhab, a Hezbollah ally, described al-Sabhan in a television interview as a "monster on the loose."

"I hope that Thamer al-Sabhan paid the price for such militia-style behavior," he said.

___

Batrawy reported from Dubai, United Arab Emirates. Associated Press writer Josh Lederman in Washington contributed to this report.