Benjamin Netanyahu’s deadline for forming a new Israeli government expired early on Wednesday,with the country’s longest-serving prime minister having failed to break more than two years of political deadlock.

There was also no guarantee that, after the conservative incumbent was unable to assemble a new coalition, parties outside his caretaker government could bridge their differences and unseat him.

Netanyahu, 71, has been in office since 2009 and also served for three years in the 1990s.

He has been fighting to hold the helm through four inconclusive elections since 2019 and is on trial for criminal corruption charges he denies.

With the midnight deadline having passed, President Reuven Rivlin can assign the coalition-building task to another member of parliament. That is widely expected to be Yair Lapid, 57,whose centrist Yesh Atid party placed second to Netanyahu’s Likud in the March 23 vote.

Netanyahu’s bloc of right-wing and Jewish religious parties failed to win a majority, but so did a camp aiming to oust him, which would have to include his right-wing rivals as well as traditional left-wing and centrist opponents.

Both sides have courted the support of parties representing Israel’s around 20% Arab minority, potentially giving them say over a Cabinet for the first time in decades.

Naftali Bennett, head of the ultra nationalist Yamina party,has emerged as a kingmaker.

Bennett, 49, has voiced a preference to join Netanyahu but said he would seek a partnership with the prime minister’s opponents to avoid a fifth election as Israel reopens its economy following a swift COVID-19 vaccination rollout and grapples with the challenges of Iran’s nuclear programme.

A rotation deal in which Bennett and Lapid would alternate as prime minister has also been widely mooted.

Much of the impasse stems from Netanyahu’s legal troubles: Some prospective allies have pledged they would not serve under a prime minister who is on trial.

Should a new nominee tapped by Rivlin fail to put together a coalition within 28 days, the president can ask parliament to agree a candidate within three weeks. If it cannot, Israel will hold another election.

“We are 60% headed toward another election and 40% toward a new government,” Yoav Krakovsky, Kan public radio’s political affairs correspondent, forecast in a morning broadcast.