BEIRUT — Lebanese Prime Minister Saad Hariri arrived in Beirut late on Tuesday, ending a near-three-week absence to address a political crisis that’s drawn in regional and global powers and raised concern that the fragile country would again be caught in a showdown between Saudi Arabia and Iran.

Hariri, a longtime ally of Saudi Arabia, left Lebanon on Nov. 3 and announced his shock resignation from the Saudi capital the next day, accusing Iran and the Hezbollah militant group backed by Tehran of destabilizing his country. Coinciding with the arrest of senior royals and businessmen in Saudi Arabia, the resignation raised questions about whether the 47-year-old had been coerced into quitting. Saudi officials denied the accusations.

The Sunni Muslim leader, who also holds a Saudi citizenship, is now expected to say whether he’ll resign officially or return to office. In a televised interview last week from his home in Riyadh, he said Hezbollah’s support of Iran against Saudi Arabia was a threat to Lebanon’s stability. His arrival just before midnight was reported by Al-Jazeera and Hadath TV.

The political crisis drew mediation efforts from France, with President Emmanuel Macron inviting Hariri for talks in Paris on Saturday. Hariri later said he would return to Lebanon in time for Wednesday’s Independence Day celebrations. He also held talks with Egyptian President Abdel-Fattah el-Sissi. Fireworks were heard in Beirut as Hariri supporters in mainly Sunni areas celebrated his impending return.