The United Nations’ top court on Monday was hearing a final day of arguments on the legality of Israel’s decades-long occupation of Palestinian territories, proceedings that have added pressure to Israel at a time when attention focuses on the war in Gaza.

The hearings, which began last Monday, are the first time that the court, the International Court of Justice, has been asked to detail the legal consequences of Israel’s “prolonged occupation, settlement and annexation” of the territories, including the West Bank and East Jerusalem, since 1967 — issues that have been the subject of years of debate and resolutions at the United Nations. The U.N. General Assembly asked the court to give an advisory opinion, which it is expected to take months to deliver.

The sessions, held at the Peace Palace in The Hague, are hearing from representatives of more than 50 countries, an unusually high number for the court. Most have sided with the Palestinian representatives, who argued that Israel had long abused Palestinian rights with impunity and denied their right to self-determination.

“Israel has arrogated to itself the right to decide who owns land, who may live on it, how it is used,” Philippe Sands, a member of the Palestinian delegation’s legal team, argued last week. “It has confined Palestinians to enclaves,” he added, and broken up its territory with hundreds of settlements “regarded as a permanent part of Israel.”

Israel has not appeared at the hearings, but, in a written submission, it rejected the questions raised by the proceedings as biased.

The proceedings have been given urgency by Israel’s war against Hamas in the Gaza Strip. Health authorities in Gaza say that Israel’s military campaign has killed more than 29,000 people, the majority civilians, and provoked what the United Nations says is a humanitarian disaster.