The July-August conflict between Israel and Islamist movement Hamas, which rules the Gaza Strip, left 100,000 Gazans homeless and forced many to seek refuge in schools belonging to the UN's Palestinian refugee agency, UNRWA.
"Some 30 families left the shelter of the Bahrain school (in western Gaza City), where up to 1,100 displaced people had been living," UNRWA spokesman Adnan Abu Hasna told AFP.
It was the final UN building being used as a shelter for those displaced in the war, he said.
UNRWA gave between USD 800 and USD 1000 to each family to be spent on temporary accommodation for several months, Abu Hasna said.
Also Read
He said that the amount of money the agency could continue giving families would "depend on donor support."
Reconstruction of the tens of thousands of homes destroyed during the war has not yet begun, although repairs have been made to a number of partially damaged buildings, UNRWA says.
Gazans who lost their homes are either staying with relatives, in temporary accommodation such as apartments, or living under makeshift canvas tents in the ruins of their bombed-out houses.
Israel maintains it needed to target those facilities because Palestinian militants were using the areas to store weapons and fire rockets.
The war killed 2,200 Palestinians, mostly civilians, and 73 on the Israeli side, 67 of them soldiers.
The international community has called for an end to Israel's blockade of Gaza, now in its ninth year, which puts tight restrictions on the entry of building material through the goods crossing the Jewish state controls.
Israel says it fears building material could be used by Hamas to build weapons and attack tunnels.