United Nations Secretary-General Antonio Guterres said on Wednesday he was "horrified" by hundreds of people killed in a blast at a Gaza hospital, strongly condemning the action.
Palestinian officials said an Israeli air strike hit the hospital, with the Palestinian Authority's health minister accusing Israel of causing a "massacre".
Israel blamed the blast at Al-Ahli al-Arabi hospital on a failed rocket launch by another militant group in the region, which denied responsibility.
Guterres, speaking at the opening ceremony of the Belt and Road Forum in Beijing, said he condemned the Hamas attacks against civilians in Israel on October 7
"But those attacks cannot justify the collective punishment of Palestinian people," he added.
Before flying to the Chinese capital to attend the forum, Guterres said he had appealed to Hamas for the immediate and unconditional release of hostages, and to Israel to allow immediate unrestricted access to humanitarian aid for the most basic needs of the people of Gaza.
He called for an immediate humanitarian ceasefire and made appeals to "ease the epic human suffering."
Guterres was in Beijing to attend President Xi Jinping's ambitious global infrastructure initiative with more than 20 world leaders in attendance.
He emphasised the need for promotion of effective debt relief mechanisms to ensure that countries involved in the Belt and Road programme were not locked into unsustainable debt.
Several partner nations have complained about the high cost of projects of the initiative, which was launched in 2013.
Some countries like the United States view Belt and Road as China's growing move to expand its economic influence on certain parts of the world.


Damascus cafe blast kills 5, wounds 16
Russian air strikes kill 10, injure more than 50 in Ukraine's Kyiv
Firefighters battle wildfire in southern France
US, Iran talks conclude in Doha, focused on Strait of Hormuz
Trump honours Theodore Roosevelt in North Dakota, debuts new Air Force One
Kenyan court charges 8 schoolgirls with fellow students' murder
At least 5 people killed in fire in Antwerp apartment block
Three people die in Mexico World Cup celebrations as fans crowd streets
