The members of the kibbutz Nir Am woke up Monday morning (local time) to an urgent command from the Israeli army: no one was to leave home until further notice. The socialist farming community is less than three kilometres from the border with Gaza — and therefore an easy target for a group of Hamas militants who crept under the border and were caught by Israeli soldiers.

“But if they had managed to pass the Israeli soldiers, they would have come straight to the kibbutz,” said Micha Ben-Hillel, who lives in Nir Am. Most of the community's 400 people have left the kibbutz and are staying with relatives until the war ends.

Two weeks into Operation Protective Edge, Hamas is showing expanded tactics, infrastructure and weaponry against Israel — which has unleashed its firepower at Hamas in a deadly air and ground operation. More than 500 Palestinians have died since Israeli airstrikes began July 8, and 24 Israeli soldiers have been killed in battle since troops crossed into Gaza on Thursday. On Monday, Israeli tank fire punctuated the night in Sderot. Military vehicles crisscrossed the region near the Gaza border.

The Israeli army has vowed to wipe out Hamas' arsenal and restore calm to Israel. Hamas, however, has countered that there will be no cease-fire until Israel and Egypt lift restrictions on movement in Gaza that have left the small coastal enclave isolated for the past seven years.

The 1.7 million people in Gaza lead lives that are sharply defined by limitations. Israel closed its two border crossings with Gaza after Hamas took power there in 2007. For years, Gazans eluded Israeli restrictions by using the Rafah crossing with Egypt and trading goods via a flourishing underground economy of tunnels on the Gaza-Egypt frontier.

Then in July 2013, the Egyptian military deposed President Mohammed Morsi, who rose to prominence through the Muslim Brotherhood, and the new government cracked down hard on Hamas, which long had close ties with the Brotherhood. The new military-installed government closed the border between Egypt and Gaza and blew up most of the tunnels.

Today, the people of Gaza are hemmed in on all sides. They are rarely granted permits to leave the enclave, which has cost many of them job opportunities, scholarships and travel.

Speaking Monday, former Hamas Prime Minister Ismail Haniyeh vowed that his people “cannot go back to the silent death” of the blockade.

Haniyeh's comments came days after Egypt attempted to broker a cease-fire between Israel and Hamas. The Islamist militant group refused the terms. Hamas officials claimed they were excluded from cease-fire negotiations until the last minute, and that any cease-fire agreement must include lifting the restrictions on the enclave.

Hamas' attempt to leverage the current conflict into greater political rights is meeting strong Israeli opposition.

“We have on our southern border an entity which is in a declared state of war with Israel,” said Israeli Foreign Ministry spokesman Yigal Palmor. “Therefore the border crossings cannot be opened for anyone to come and go.”

Many argue, however, that before Israel's recent attacks, Hamas had shown itself to be far more pragmatic than Israel has cast it.

Political scientist Mukhaimar Abusaada, who teaches at Gaza's Al-Azhar University, said that Hamas had been making moves toward the mainstream in recent years, a trend that, he said, now in all likelihood will end.

He noted, for example, that after the last Israeli attacks on Gaza, so-called Operation Pillar of Defense, which ended in a cease-fire in 2012, Hamas agreed to force more radical Islamist groups to stop attacking Israel. Hamas was running health services, schools and a judicial system, and performed well enough that Qatar offered it NZ$575 million in aid, Abusaada said.

After the Muslim Brotherhood government fell in Egypt, Hamas, facing isolation from Egypt and without funding from Iran or Syria, finally forged an agreement with its archrivals, Palestinian President Mahmoud Abbas and his Fatah faction, to join a unity government in which Abbas, not Hamas, would govern relations with Israel.

The stage was ripe for Hamas to rejoin the fold, Abusaada said — and then tensions escalated and erupted into the current battle.

Israeli officials denounce suggestions that Hamas had tempered its stand toward Israel. They note that the current fighting has shown that Hamas had invested heavily in weapons and a network of tunnels for infiltrating Israel.

Lieutenant Colonel Peter Lerner, an Israeli military spokesman, said the arsenal Hamas amassed in the last two years included 10,000 rockets, 1600 of which have been fired into Israel in the last 14 days. The army also has uncovered 14 tunnels snaking underground to Israel, and 36 shafts that lead into them, Lerner said.