Israel’s new prime minister Naftali Bennett raises his hand during a Knesset session in Jerusalem Sunday, June 13, 2021. Israel’s parliament has voted in favor of a new coalition government, formally ending Prime Minister Benjamin Netanyahu’s historic 12-year rule. Naftali Bennett, a former ally of Netanyahu became the new prime minister (AP Photo/Ariel Schalit)

Israel’s parliament on Sunday narrowly approved a new coalition government, ending the historic 12-year rule of Prime Minister Benjamin Netanyahu and sending the polarizing leader into the opposition.

Naftali Bennett, a former ally of Netanyahu turned rival, became prime minister after the 60-59 vote. Promising to try to heal a divided nation, Bennett will preside over a diverse and fragile coalition comprised of eight parties with deep ideological differences.

But the 71-year-old Netanyahu made clear he has no intention of exiting the political stage. “If it is destined for us to be in the opposition, we will do it with our backs straight until we topple this dangerous government and return to lead the country,” he said.

The vote, capping a stormy parliamentary session, ended a two-year cycle of political paralysis in which the country held four deadlocked elections. Those votes focused largely on Netanyahu’s divisive rule and his fitness to remain in office while on trial for corruption charges.

To his supporters, Netanyahu is a global statesman uniquely capable of leading the country through its many security challenges.

But to his critics, he has become a polarizing and autocratic leader who used divide-and-rule tactics to aggravate the many rifts in Israeli society. Those include tensions between Jews and Arabs, and within the Jewish majority between his religious and nationalist base and his more secular and dovish opponents.

Outside the Knesset, hundreds of protesters watching the vote on a large screen erupted into applause when the new government was approved. Thousands of people, many waving Israeli flags, celebrated in central Tel Aviv’s Rabin Square.

President Joe Biden quickly congratulated the new government.

“I look forward to working with Prime Minister Bennett to strengthen all aspects of the close and enduring relationship between our two nations,” he said in a statement. He said his administration is fully committed to working with the new government “to advance security, stability, and peace for Israelis, Palestinians, and people throughout the broader region.”

Bennett’s office said he later spoke by phone with Biden, thanking him for his warm wishes and longstanding commitment to Israel’s security.