Tens of thousands of Israelis are protesting proposed legislation granting Prime Minister Benjamin Netanyahu immunity from prosecution on a series of corruption charges.

The protesters outside the Tel Aviv Museum of Art on Saturday also called for protecting Israel's democratic identity against government overreach.

The demonstrators say Netanyahu's incoming coalition is pushing for legislation to shield him from prosecution and is looking to restrict the power of the Supreme Court.

Yair Lapid of Israel's opposition Blue and White party compared Netanyahu's efforts to consolidate his power to Turkish President Recep Tayyip Erdogan. Addressing Netanyahu, Lapid said: "We won't have a Turkish dictator. We won't allow it."

Netanyahu was elected to his fourth successive term as prime minister in April, two months after Israel's attorney general decided to indict him on corruption charges, pending a final hearing.