Israeli Prime Minister Benjamin Netanyahu was heading to court Sunday to face corruption charges in the first criminal trial ever against a sitting Israeli leader.

Netanyahu is set to appear at the opening hearing at a Jerusalem district court, after his request to have his lawyers represent him instead was rejected. The courthouse is expected to draw crowds of supporters, protesters and media hoping to witness Netanyahu enter the building, where he will hear the arraignment against him.

The dramatic scene comes just days after the long-serving leader swore in his new government, breaking more than a year of political stalemate following three inconclusive elections.

FILE - In this Feb. 16, 2020, file, photo, Israeli Prime Minister Benjamin Netanyahu chairs the weekly cabinet meeting, in Jerusalem. An Israeli court on Wednesday, May 20, 2020 ordered Prime Minister Benjamin Netanyahu to appear for the opening of his criminal trial in Jerusalem on Sunday. (Gali TibbonPool via AP, File)

FILE - In this Feb. 16, 2020, file, photo, Israeli Prime Minister Benjamin Netanyahu chairs the weekly cabinet meeting, in Jerusalem. An Israeli court on Wednesday, May 20, 2020 ordered Prime Minister Benjamin Netanyahu to appear for the opening of his criminal trial in Jerusalem on Sunday. (Gali TibbonPool via AP, File)

Netanyahu held his first Cabinet meeting with the new government just hours before heading to court. Neither he nor any of his ministers addressed the looming trial but the country's outgoing religious affairs minister wished Netanyahu that “God will bring the truth out” at his trial.

Netanyahu faces charges of fraud, breach of trust, and accepting bribes in a series of corruption cases stemming from ties to wealthy friends. He is accused of accepting lavish gifts and offering to grant favors to powerful media moguls in exchange for favorable coverage of him and his family. He denies the charges and has lashed out at the media, police, prosecution and courts of forging a conspiracy to oust him. It comes after years of scandals swirling around the family.

Netanyahu and his allies have spent months lashing out the country's law enforcement system, and the charges against him have deeply divided the nation. Police were preparing for potential demonstrations in support of and against the prime minister outside the District Court in east Jerusalem. Several of Netanyahu’s Likud party ministers, including the newly appointed internal security minister who overseas the police, said they would arrive to back him.

FILE - In this April 25, 2020 file photo, demonstrators wearing protective face masks amid concerns over the country's coronavirus outbreak, hang a banner showing Israeli Prime Minister Benjamin Netanyahu during "Black Flag" protest against Netanyahu and government corruption, at Rabin Square in Tel Aviv, Israel. After entering the record books last year as Israel’s longest-serving prime minister, Benjamin Netanyahu will once again make history on Sunday, May 24, 2020 when he becomes the country’s first sitting leader ever to go on trial.  (AP PhotoOded Balilty, File)

FILE - In this April 25, 2020 file photo, demonstrators wearing protective face masks amid concerns over the country's coronavirus outbreak, hang a banner showing Israeli Prime Minister Benjamin Netanyahu during "Black Flag" protest against Netanyahu and government corruption, at Rabin Square in Tel Aviv, Israel. After entering the record books last year as Israel’s longest-serving prime minister, Benjamin Netanyahu will once again make history on Sunday, May 24, 2020 when he becomes the country’s first sitting leader ever to go on trial. (AP PhotoOded Balilty, File)

Opposition leader Yair Lapid accused them of fomenting violence and trying to intimidate the judges. “Netanyahu is trying to drag us into a civil war to save himself from trial,” he told the YNet website.

Netanyahu’s court appearance Sunday caps a three-year investigation. It also comes after more than a year of political turmoil, with three inconclusive elections — each seen as a referendum on Netanyahu — finally ending last month when the Israeli leader and his main rival, former army chief Benny Gantz, came to a power-sharing deal.

As part of their power-sharing deal, Netanyahu will remain prime minister for the next 18 months, and alternative prime minister for the 18 months after, and will not be legally required to step down during what is expected to be a lengthy trial.

Israeli Prime Minister Benjamin Netanyahu, second right, wears a protective face mask, as he makes his way to attend the swearing in ceremony of his new government, at the Knesset, Israel's parliament, in Jerusalem, Sunday, May 17, 2020. Netanyahu is finally swearing in his new government after three deadlocked and divisive elections, a year and a half of political paralysis and another three-day delay because of political infighting in his Likud party over coveted Cabinet posts. (Alex KolomienskyYedioth AhronothPool via AP)

Israeli Prime Minister Benjamin Netanyahu, second right, wears a protective face mask, as he makes his way to attend the swearing in ceremony of his new government, at the Knesset, Israel's parliament, in Jerusalem, Sunday, May 17, 2020. Netanyahu is finally swearing in his new government after three deadlocked and divisive elections, a year and a half of political paralysis and another three-day delay because of political infighting in his Likud party over coveted Cabinet posts. (Alex KolomienskyYedioth AhronothPool via AP)

Netanyahu’s proceedings were supposed to begin in March, but were delayed by his justice minister who issued restrictions on the courts amid the coronavirus crisis.