Israeli Prime Minister Benjamin Netanyahu has fought back against an agreement by his political opponents for a government of left-wing, centrist and right-wing parties aimed at unseating him.

Mr Netanyahu, facing the prospect of an end to his 12-year run as premier, said on Twitter "all legislators elected by votes from the right must oppose this dangerous left-wing government".

It was the first public pushback by Mr Netanyahu, who heads the right-wing Likud party, against centrist politician Yair Lapid's announcement about 35 minutes before last night's deadline that he had succeeded in forming a governing coalition.

Under the deal, nationalist Naftali Bennett, 49, a former defence minister and a high-tech millionaire, would become prime minister and hand over the post to Mr Lapid, 57, a former TV host and finance minister, in about two years.

The agreement capped a 23 March election in which neither Likud nor its allies nor their opponents won a majority in the legislature. It was Israel's fourth national ballot in two years.

The coalition comprises a patchwork of small and medium parties from across the political spectrum, including for the first time in Israel's history one that represents its 21% Arab minority - the United Arab List.

They have little in common other than a desire to oust Mr Netanyahu, whose is also on trial on corruption charges. He denies any wrongdoing.

We need your consent to load this rte-player contentWe use rte-player to manage extra content that can set cookies on your device and collect data about your activity. Please review their details and accept them to load the content.Manage Preferences

Israel's opposition leader Lapid says he can form government
Israel's new government: What just happened, and what's next?

The line-up includes Mr Bennett's Yamina (Rightward), centre-left Blue and White, headed by Defence Minister Benny Gantz, the left-wing Meretz and Labour parties, former defence minister Avigdor Lieberman's nationalist Yisrael Beitenu party and New Hope, a right-wing party headed by former education minister Gideon Saar, who broke away from Likud.

Political analysts have widely expected Mr Netanyahu to try to pick off what one described as "low-hanging fruit", seizing upon Yamina members who are unhappy about joining forces with Arab and leftist politicians.

Tamar Zandberg, a Meretz legislator, acknowledged the difficulties in getting the alliance that her party joined off the ground.

"The coalition's to be sworn in - that won't be without rough patches and problems," she said on Army Radio today.

Mr Netanyahu controls 30 seats in the 120-member Knesset, almost twice as many as Mr Lapid's Yesh Atid party, and he is allied with at least three other religious and nationalist parties.