Benjamin Netanyahu announced that he had formed a new Israeli government on Tuesday, returning to power as the head of the most right-wing coalition in Israel's history.
Mr Netanyahu secured a mandate to form a government backed by ultra-Orthodox Jewish parties and an extreme-right bloc after his November 1 election win.
His win enabled him to replace the ideologically disparate coalition that removed him as prime minister in 2021 and left him poised to end Israel's unprecedented era of political gridlock that forced five elections in less than four years.
Mr Netanyahu, who is fighting corruption allegations in court, has already served as premier longer than anyone in Israeli history, including a 1996 to 1999 stint and a record 12-year tenure from 2009 to 2021.
His mandate to conclude coalition talks had been set to expire at midnight.
Minutes before the deadline, he informed President Isaac Herzog by phone that he "been able to establish a government", Mr Netanyahu's office said.
It confirmed that Mr Netanyahu's Likud would govern in partnership with the main ultra-Orthodox parties and members of an extreme bloc that ran under the Religious Zionism alliance.
Some political analysts had forecast that Mr Netanyahu, 73, would be able to announce a new government quickly after the November polls, given the ideological common ground between his right-wing Likud party and its partners.
But the talks dragged on, with Mr Netanyahu forced to juggle demands for senior cabinet posts, some of which he was compelled to grant.
Among his most controversial moves was promising an expanded national security ministry to the leader of the Jewish Power party, Itamar Ben Gvir, who has a long history of incendiary speech against Arabs.
It was not immediately clear when the new government would be sworn in. Mr Netanyahu told Mr Herzog he intended to do so "as soon as possible".
There could be delays linked to the continuing Jewish Hannukah holiday and because crucial parliamentary business remains unfinished.
Israel elections 2022 - in pictures
Aryeh Deri, leader of the Shas ultra-Orthodox party, is a key player in the new parliament who has been promised the interior and health portfolios.
But according to Attorney General Gali Baharav-Miara, Mr Deri cannot serve in cabinet because of past convictions for tax offences.
Parliament is expected to pass legislation to remove that obstacle, but has yet to do so even though Mr Netanyahu and his allies control 64 of its 120 seats.
More sensitive are measures that would give Mr Ben Gvir control over the border police, which assists the army in annexed East Jerusalem and the occupied West Bank.
Mr Ben Gvir has been widely accused of inflaming tension and has repeatedly urged Israeli security personnel to use more force when countering Palestinian unrest.
On Tuesday a senior US official said Washington planed a meeting early in 2023 between Israel and Arab nations that recognise it, as it pushes Mr Netanyahu's incoming right-wing government to show restraint.
Netanyahu on trial - in pictures
Ms Baharav-Miara has issued a stark condemnation of the prospective government's legislative agenda.
She said some of the measures threatened to turn Israel into a "democracy in name, but not in essence".
"The politicisation of law enforcement will deal a serious blow to the most fundamental principles of the rule of law, that is to say equality, the absence of arbitrariness and impartiality," Ms Baharav-Miara said.
Mr Netanyahu may still be juggling cabinet demands from within his own Likud, by far the largest party in parliament. Israeli newspaper Maariv said that remained a major challenge.
"There are more demands for important portfolios than available jobs," the paper said in a commentary on Wednesday.