TEL AVIV, Israel (AP) — Thousands of Israelis gathered in central Tel Aviv on Saturday night to protest plans by Prime Minister Benjamin Netanyahu's new government to overhaul the legal system and weaken the Supreme Court — a step that critics say will destroy the country's democratic system of checks and balances.

The protest presented an early challenge to Netanyahu and his ultranationalist national security minister, Itamar Ben-Gvir, who has ordered police to take tough action if protesters block roads or display Palestinian flags.

Israeli media, citing police, said the crowd had swelled to tens of thousands of people by 8 p.m. despite cool, rainy weather. Protesters, many covered by umbrellas, held Israeli flags and signs saying “Criminal Government" and “The End of Democracy.”

Channel 13 TV said the crowds were so large they poured over into neighboring streets. There were no immediate reports of unrest.

Netanyahu, who is on trial for corruption charges, has made overhauling the country’s legal system a centerpiece of his agenda.

In office for just over two weeks, his government has launched proposals to weaken the Supreme Court by giving parliament the power to overturn court decisions with a simple majority vote. It also wants to give parliament control over the appointment of judges and reduce the independence of legal advisers.

Netanyahu's justice minister says unelected judges have too much power. But opponents to the plans say the proposed changes will undermine Israeli democracy. Israeli opposition leaders, former attorney generals and the president of Israel's Supreme Court have all spoken out against the plan.

The legal changes could help Netanyahu, who is on trial for corruption, evade conviction, or even make his trial disappear entirely. Since being indicted in 2019, Netanyahu has said the justice system is biased against him.

Police beefed up their presence ahead of the march. Israeli media quoted police as saying officers had been instructed to be “very sensitive” and allow the protest to proceed peacefully. But they also vowed a tough response to any vandalism or violent behavior.

Smaller protests also took place in the cities of Jerusalem and Haifa.