Netanyahu

Israeli opposition parties announced on Wednesday that they had reached a coalition agreement to form a government and oust Benjamin Netanyahu, the longest-serving prime minister in Israeli history and a dominant figure who has pushed his nation’s politics to the right.

The announcement could lead to the easing of a political impasse that has produced four elections in two years and left Israel without a stable government or a state budget. If parliament ratifies the fragile agreement in a confidence vote in the coming days, it will also bring down the curtain, if only for an intermission, on the premiership of a leader who has defined contemporary Israel more than any other.

The new coalition is an unusual and awkward alliance between eight political parties from a diverse array of ideologies, from the left to the far right. While some analysts have hailed it as a reflection of the breadth and complexity of contemporary society, others say its members are too incompatible for their compact to last, and consider it the embodiment of Israel’s political dysfunction.

The alliance would be led until 2023 by Naftali Bennett, a former settler leader and standard-bearer for religious nationalists, who opposes a Palestinian state and wants Israel to annex the majority of the occupied West Bank. He is a former ally of Mr. Netanyahu often described as more right wing than the prime minister.

If the government lasts a whole term, it would then be led between 2023 and 2025 by Yair Lapid, a centrist former television host considered a standard-bearer for secular Israelis.

It was Mr. Lapid who was picked by the president, Reuven Rivlin, four weeks ago to try to form a new government. And it was Mr. Lapid who called Mr. Rivlin at 11:22 p.m. on Wednesday night, with just 38 minutes left before his mandate expired, to inform him that he had assembled a fragile coalition.

“I commit to you, Mr. President, that this government will work to serve all the citizens of Israel, including those who aren’t members of it, will respect those who oppose it, and do everything in its power to unite all parts of Israeli society,” Mr. Lapid said, according to a readout provided by his office.

Mr. Bennett, 49, is the son of American immigrants, and a former software entrepreneur, army commando and chief of staff to Mr. Netanyahu. His home is in central Israel, but he was once chief executive of an umbrella group, the Yesha Council, that represents Jewish settlements in the occupied West Bank. Until the most recent election cycle, Mr. Bennett was part of a political alliance with Bezalel Smotrich, a far-right leader.