Morocco expressed "great concern and deep indignation" over "the worsening of the humanitarian situation in the Gaza Strip", a foreign ministry statement said on Thursday.
It said Rabat regrets "the inaction" of the international community and the United Nations Security Council's "failure to assume its responsibilities".
The statement condemned what it called "the inability of influential countries to put an end to this catastrophic situation".
Israel's "acts of escalation are in contradiction with international humanitarian law and common human values", it said.
Morocco, which normalised diplomatic ties with Israel in 2020, called "for a de-escalation leading to a ceasefire and the opening of humanitarian corridors".
It also called for "the release of prisoners and detainees with the obligation to open a political perspective to the Palestinian issue that allows the relaunch of the two-state solution".
Despite their 2020 rapprochement, Morocco regularly reaffirms its commitment to the Palestinian cause.
Since the war began, Moroccans have demonstrated in large numbers in solidarity with the Palestinian people and against the normalisation of ties with Israel.