Hassan Ammar/Associated Press via CP In this photo taken on Friday, Sept. 8, 2017, Lebanese Prime Minister Saad Hariri, left, arrives for a mass funeral of 10 Lebanese soldiers in Yarzeh near Beirut.

BEIRUT — Lebanese prime minister Saad Hariri resigned from his post Saturday during a trip to Saudi Arabia in a surprise move that plunged the country into uncertainty amid heightened regional tensions.

In a televised address from Riyadh, Hariri fired a vicious tirade against Iran and its Lebanese proxy Hezbollah group for what he said was their meddling in Arab affairs and said "Iran's arms in the region will be cut off."

"The evil that Iran spreads in the region will backfire on it," Hariri said, accusing Tehran of spreading chaos, strife and destruction throughout the region.

I promised you that I would seek to unite the Lebanese, end political division and establish the principle of self-sufficiency, but I have been unable to do so. Despite my efforts, Iran continues to abuse Lebanon.Saad Hariri

Hariri was appointed prime minister in late 2016 and headed a 30-member national unity cabinet that included the Shiite militant Hezbollah. The government has largely succeeded in protecting the country from the effects of the civil war in neighbouring Syria.

The country is sharply divided along a camp loyal to Saudi Arabia, headed by the Sunni Muslim Hariri, and a camp loyal to Iran represented by Hezbollah. President Michel Aoun, who was elected in October 2016 after more than two years of presidential vacuum, is a close ally of Hezbollah.

His election was made possible after Hariri endorsed him for president, based on an understanding that Aoun would then appoint him as prime minister.

In a statement, the presidential office said Aoun was informed by Hariri in a phone call of his resignation, adding that the president now awaits Hariri's return to the country to clarify the circumstances of his resignation and proceed accordingly.

Hariri's father was assassinated in 2005

Hariri's bombshell resignation Saturday was expected to raise tensions in the country and ushers in a stage of deep uncertainty and potential instability. It comes amid a sharp escalation in Saudi rhetoric against its regional archrival Iran.

In his speech, he suggested he feared for his life and said the climate in the country is similar to the one that existed before his father, the late prime minister Rafik Hariri, was assassinated in 2005.

Several Hezbollah members are being tried in absentia for the killing by a U.N.-backed tribunal in The Hague, Netherlands. Hezbollah denies any involvement.

Hezbollah has sent thousands of its fighters to Syria to shore up President Bashar Assad's government. The group's intervention in Syria is highly controversial in Lebanon.

Earlier on HuffPost: