Cairo: An Egyptian court ruled on Monday against the government’s decision to hand over two Red Sea islands to Saudi Arabia — a landmark verdict.

The ruling by the Supreme Administrative Court in Cairo rejected an appeal by Al Sissi’s government against a lower court’s decision in June to annul the islands’ handover agreement. That deal was signed last April during a high-profile visit by the Saudi monarch, King Salman, who during the visit pledged billions of dollars to Egypt in loans and investments.

The deal sparked protests against the government. Ignoring the legal process, the government late last month sent the deal to parliament for ratification.

Monday’s verdict was met by an eruption of jubilation by activists and lawyers in the Nile-side Cairo courtroom, with some singing the national anthem and chanting patriotic slogans.

There were minor scuffles between police and several dozen people who attempted to hold a demonstration.

The ruling said the two islands, Tiran and Sanafir, are Egyptian — contrary to the government’s claim that they were Saudi and only given to Egypt in the 1950s to protect them from a possible attack by Israel.

“It’s enshrined in the court’s conscience that Egypt’s sovereignty over Tiran and Sanafir is beyond doubt,” the court’s presiding judge, Ahmad Al Shazli, said in announcing the unanimous verdict to a packed courtroom.

The judge said government lawyers did not provide the court with documents “or anything else” that could persuade it to believe otherwise.

The government’s only legal recourse now is to appeal to the Supreme Constitutional Court and argue that the agreement with the Saudis over the islands was a “sovereign” act that comes under the president’s prerogatives. However, there has been no indication so far on whether the government would do that.

Tiran and Sanafir are located at the mouth of the Gulf of Aqaba, controlling the narrow shipping lanes running to and from the Red Sea port cities of Eilat, claimed by Israel, and Aqaba in Jordan, to the north.

Last September, Saudi Arabia unilaterally suspended fuel shipments to Egypt that were agreed during King Salman’s visit, forcing Cairo to scurry for alternative sellers.

Al Sissi has publicly shown his frustration with the public debate over the fate of the islands, angrily shouting during a televised meeting last year: “I don’t want anyone to talk about it (the issue) anymore!” “I wish we all understand that nations are not built except with justice and rule of law,”

Egypt’s top democracy advocate and one-time Vice President Mohammad Al Baradei posted on Twitter after the verdict. “I hope that today’s verdict is a beginning of an awakening ... to change and correct the path. Sovereignty is for the people.”