The top United Nations court has ordered Israel to halt its military operation in Rafah.
Israel is not expected to comply with the order made by the International Court of Justice on Friday, and has insisted it has the right to defend itself from Hamas militants.
But the ruling from the Hague is expected to ramp up international pressure on Prime Minister Benjamin Netanyahu over military action in Gaza.
It is the third time this year the court’s 15-judge panel has issued preliminary orders seeking to reduce the death toll and alleviate humanitarian suffering in Gaza.
Criticism of Israel's conduct in the war against Hamas has been growing - even from its closest ally, the United States, which warned against an invasion of Rafah, where hundreds of thousands of Palestinians have sought shelter from fighting elsewhere.
Mr Netanyahu is also under heavy pressure at home to end the war, which was triggered when Hamas-led militants stormed into Israel, killing 1,200 people, most civilians, and taking some 250 captive. Thousands of Israelis have joined weekly demonstrations calling on the government to reach a deal to bring the hostages home, fearing that time is running out.
While the ruling by the International Court of Justice is a blow to Israel's international standing, the court does not have a police force to enforce its orders. In another case on its docket, Russia has so far ignored a 2022 order by the court to halt its full-scale invasion of Ukraine.
Israel signaled it, too, would brush off an ICJ order to stop its operations. "No power on earth will stop Israel from protecting its citizens and going after Hamas in Gaza," Avi Hyman, the government spokesperson, said in a press briefing Thursday.
The court's president, Nawaf Salam, read out the ruling, as a small group of pro-Palestinian protesters demonstrated outside.
Fears expressed earlier "with respect to the developments in Rafah have materialized and that the humanitarian situation is now to be characterized as disastrous," the ruling said.
The court did not call for a full cease-fire throughout Gaza as South Africa had requested at hearings last week.
The cease-fire request is part of a case filed late last year by South Africa accusing Israel of committing genocide during its Gaza campaign. Israel vehemently denies the allegations. The case will take years to resolve, but South Africa wants interim orders to protect Palestinians while the legal wrangling continues.
At public hearings last week at the International Court of Justice, South Africa's ambassador to the Netherlands, Vusimuzi Madonsela, urged the panel of 15 international judges to order Israel to "totally and unconditionally withdraw" from the Gaza Strip.
The court has already found that Israel's military operations pose a "real and imminent risk" to the Palestinian people in Gaza.
Israel's offensive has killed more than 35,000 Palestinians, according to Gaza's Health Ministry, which does not distinguish between combatants and civilians. The operation has obliterated entire neighborhoods, sent hundreds of thousands of people fleeing their homes, and pushed parts of the territory into famine.
"This may well be the last chance for the court to act," Irish lawyer Blinne Ní Ghrálaigh, who is part of South Africa's legal team, told judges last week.
Israel rejects the claims by South Africa, a nation with historic ties to the Palestinian people.
"Israel takes extraordinary measures in order to minimize the harm to civilians in Gaza," Tamar Kaplan-Tourgeman, a member of Israel's legal team, told the court last week.
In January, ICJ judges ordered Israel to do all it can to prevent death, destruction and any acts of genocide in Gaza, but the panel stopped short of ordering an end to the military offensive. In a second order in March, the court said Israel must take measures to improve the humanitarian situation.
The ICJ rules in disputes between nations. A few kilometers (miles) away, the International Criminal Court files charges against individuals it considers most responsible for war crimes, crimes against humanity and genocide.
On Monday, its chief prosecutor, Karim Khan, said he has asked ICC judges to approve arrest warrants for Netanyahu, Defence Minister Yoav Gallant and three top Hamas leaders - Yahya Sinwar, Mohammed Deif and Ismail Haniyeh - of war crimes and crimes against humanity in the Gaza Strip and Israel.
Israel is not an ICC member, so even if the arrest warrants are issued, Netanyahu and Gallant do not face any immediate risk of prosecution. But the threat of arrest could make it difficult for the Israeli leaders to travel abroad.