If a coalition had not been announced in time, Israel would have gone to the polls for a fifth election in slightly over two years.

Israeli Prime Minister Benjamin Netanyahu sits at the plenum at the Knesset, Israel's parliament, in Jerusalem May 30, 2019.
Israeli Prime Minister Benjamin Netanyahu sits at the plenum at the Knesset, Israel's parliament, in Jerusalem May 30, 2019. (Reuters)

Prime Minister Benjamin Netanyahu’s opponents have announced they have reached a deal to form a new governing coalition, paving the way for the ouster of the longtime Israeli leader.

The dramatic announcement by opposition leader Yair Lapid and his main coalition partner, Naftali Bennett, came late on Wednesday moments before a midnight deadline and prevented the country from plunging into what would have been its fifth consecutive election in just over two years.

READ MORE: Naftali Bennet's rise tells of how 'poisonous' Israeli politics is

In a statement on Twitter, Lapid said he had informed the country's president of the deal. “This government will work for all the citizens of Israel, those that voted for it and those that didn’t. It will do everything to unite Israeli society,” he said.

Under the agreement, Lapid and Bennett will split the job of prime minister in a rotation. Bennett will serve the first two years, while Lapid is to serve the final two years. The historic deal also includes a small Islamist party, the United Arab List, which would make it the first Arab party ever to be part of a governing coalition.

The agreement still needs to be approved by the Knesset, or parliament, in a vote that is expected to take place early next week. If it goes through, Lapid and his diverse array of partners will end the record-setting 12-year rule of Netanyahu.

Netanyahu, desperate to remain in office while he fights corruption charges, is expected to do everything possible in the coming days to prevent the new coalition from taking power. If he fails, he will be pushed into the opposition.

READ MORE: Israeli hardliner Bennett joins coalition camp, Netanyahu cries danger

Netanyahu had hoped to extend his long rule and battle the corruption charges from the prime minister's office. He has emerged as a deeply polarizing force in recent years, leaving Israel in a prolonged state of political limbo through a series of inconclusive elections.

An emergency government formed last year between Netanyahu and former military chief Benny Gantz to battle the coronavirus pandemic quickly became mired in political bickering and collapsed in December. That government remains in place as caretaker.

New President

Amid the political deadlock, parliament on Wednesday elected Isaac Herzog, a veteran politician and the scion of a prominent Israeli family, as the country's next president.

The presidency is a largely ceremonial role that is meant to serve as the nation’s moral compass and promote unity.

“I intend to be the president of everyone,” Herzog, whose late father held the same position, said after the votes were tallied. “We must defend Israel’s international status and its good reputation in the family of nations, fight antisemitism and hatred of Israel, and preserve the pillars of our democracy. ”

READ MORE: How Israeli military courts jeopardise the future of Palestinian students

Herzog, 60, is a former head of Israel’s Labor Party and opposition leader who unsuccessfully ran against Netanyahu in the 2015 parliamentary elections.

He comes from a prominent Zionist family. His father, Chaim Herzog, was Israel’s ambassador to the United Nations before being elected president. His uncle, Abba Eban, was Israel’s first foreign minister and ambassador to the United Nations and United States. His grandfather was the country’s first chief rabbi.

He defeated challenger Miriam Peretz by a margin of 87-26. Peretz, 67, is a prominent educator and lecturer who is well known because she lost two sons in battle during their military service. In 2018 she was awarded the Israel Prize, the country’s top award, for lifetime achievement.

Herzog is set to take office next month and could play a role in Israeli politics down the road.

The president's responsibilities include choosing the party leader in parliament he believes has the best chance of forming a coalition after each election. If the country is forced into another vote, Herzog could help determine who becomes prime minister.

The president also has the authority to grant pardons — making Herzog a potentially key player if Netanyahu, who is on trial for multiple corruption charges, is eventually convicted.

Source: AP