But it was just a temporary boost for Hamas, whose support among Gazans has been low for some time.
And as the Israeli onslaught has brought widespread devastation and tens of thousands of deaths, the group and its leaders have remained broadly unpopular in the enclave.
More Gazans have even been willing to speak out against Hamas, risking retribution.
In interviews with nearly a dozen Gaza residents in recent months, a number of them said they held Hamas responsible for starting the war and helping to bring death and destruction upon them, even as they blame Israel first and foremost.
One Gazan, Raed al-Kelani, 47, said Hamas always acts in its own interests.
Persons:
Gazans, Israel, Raed, ”
Organizations:
Hamas, Palestinian Authority
Locations:
Israel, Gaza