Israel and Gaza's ruling Hamas agreed Tuesday to an open-ended ceasefire after seven weeks of fighting — an uneasy deal that halts the deadliest war the sides have fought in years, with more than 2,200 killed, but puts off the most difficult issues.

In the end, both sides settled for an ambiguous interim agreement in exchange for a period of calm. Hamas, though badly battered, remains in control of Gaza with part of its military arsenal intact. Israel and Egypt will continue to control access to blockaded Gaza, despite Hamas' long-running demand that the border closures imposed in 2007 be lifted. 

MIDEAST-GAZA/

Palestinians gather around the remains of a tower building housing offices that witnesses said was destroyed by an Israeli air strike in Gaza City early Tuesday. (Mohammed Salem/Reuters)

Hamas declared victory, even though it had little to show for a war that killed 2,143 Palestinians, wounded more than 11,000 and left some 100,000 homeless. On the Israeli side, 64 soldiers and six civilians were killed, including two killed by Palestinian mortar fire shortly before the cease-fire was announced.

Large crowds gathered in Gaza City after the truce took effect at dusk, some waving the green flags of Hamas, while celebratory gunfire and fireworks erupted across the territory.

Mahmoud Zahar, a senior Hamas leader, promised to rebuild homes destroyed in the war and said Hamas would rearm. "We will build and upgrade our arsenal to be ready for the coming battle, the battle of full liberation," he declared, surrounded by Hamas gunmen.

The Israeli response was more subdued.

Complex talks to begin in one month

"This time we hope the cease-fire will stick," said Israeli government spokesman Mark Regev. He portrayed the deal as one Hamas had rejected in previous rounds of negotiations.

Israeli Prime Minister Benjamin Netanyahu faced some criticism from hard-line critics and residents of Israeli communities near Gaza who said the deal failed to defuse the threat from Gaza militants. Since July 8, Hamas and its allies have fired some 4,000 rockets and mortars at Israel, and tens of thousands of Israelis evacuated areas near Gaza in recent weeks.

Under the Egyptian-brokered deal, Israel is to ease imports into Gaza, including aid and material for reconstruction. It also agreed to a largely symbolic gesture, expanding a fishing zone for Gaza fishermen from three to six nautical miles into the Mediterranean.

"As soon as calm is restored, the delivery of urgently needed humanitarian assistance to the people in Gaza must be accelerated," U.S. Secretary of State John Kerry said in a statement.

Canada's Foreign Affairs Minister John Baird "cautiously" welcomed the ceasefire and reiterated focusing on the needs of Gaza residents.

“Palestinians in Gaza have suffered greatly under Hamas’s reign, and it is high time that their needs are put first over their rulers’ blind ambition," he said in a statement.

In a month, talks are to begin on more complex issues, including Hamas' demand to start building a seaport and airport in Gaza. Israel has said it would only agree if Hamas disarms, a demand the militant group has rejected. Kerry said the U.S. will continue engaging in those talks.

"We are approaching the next phase with our eyes wide open," Kerry's statement reads. "Certain bedrock outcomes ... are essential if there is to be long term solution for Gaza."

The cease-fire went into effect at 7 p.m. local time (noon ET) Tuesday, and violence persisted until the last minute.

About an hour before the cease-fire, 12 mortar shells hit an Israeli communal farm near Gaza, killing two Israelis and wounding seven other people, two of them critically, the Israeli military said. Between 5 p.m. and 7 p.m., Gaza militants fired 83 rockets, of which 13 were intercepted.

In Gaza, an Israeli airstrike minutes before the start of the cease-fire toppled a five-story building in the town of Beit Lahiya, witnesses said. Twelve Palestinians, including two children, were killed in several Israeli airstrikes before the truce took hold, Gaza police said.

In Gaza City, a 20-year-old woman was killed and several dozen people were wounded by celebratory gunfire after the truce was announced.

Palestinian President Abbas to play key role

Throughout the war, Israel launched some 5,000 airstrikes against Gaza, saying it targeted sites linked to militants, including rocket launchers and weapons depots. About three-fourths of those killed in the strikes have been civilians, according to the U.N. and Palestinian officials.

In recent days, Israel had stepped up its pressure on Hamas, toppling five towers containing offices, apartments and shops since Saturday. Two of those buildings were brought down in airstrikes early Tuesday that destroyed dozens of apartments and shops.

Hamas has emerged from the war badly battered. Just one-third of its initial rocket arsenal of 10,000 remains, according to Israel and the Islamic group's network of attack tunnels under the border with Israel has been mostly destroyed. 

MIDEAST-GAZA

Palestinian President Mahmoud Abbas plans to ask the UN Security Council to demand Israel's withdrawal from all lands captured in 1967 Mideast war. (Mohamad Torokman/Reuters)

Despite its victory celebrations Tuesday, Hamas failed to force an end to the Gaza blockade, imposed by Israel and Egypt after the Islamic militants seized the seaside strip in 2007.

Under the restrictions, virtually all of Gaza's 1.8 million people cannot trade or travel. Only a few thousand are able to leave the coastal territory every month.

The ceasefire deal makes no mention of ending the ban on exports from Gaza or significantly easing travel.

A spokesperson for United Nations Secretary General Ban Ki-moon welcomed the ceasefire announcement and said any violations would be "utterly irresponsible," in a statement released Tuesday.

"Any peace effort that does not tackle the root causes of the crisis will do little more than set the stage for the next cycle of violence," the statement warns.

The UN statement also said Gaza must be brought back under one legitimate Palestinian government.

Palestinian President Mahmoud Abbas, a long-time rival of Hamas, likely will play a key role in any new border deal for Gaza. Abbas lost control of Gaza after Hamas seized the territory in 2007. He is expected to regain a foothold there under the Egyptian-brokered agreement.

Forces loyal to Abbas would be posted at Gaza's crossings to allay fears by Israel and Egypt about renewed attempts by Hamas to smuggle weapons into the territory. Israel is also concerned that material for reconstruction would be diverted by Hamas for military purposes. 

In a televised address Tuesday night, Abbas said the end of the war underscored the need to find a permanent solution to the conflict with Israel.

"What's next? Gaza has been subjected to three wars. Shall we expect another war in a year or two? Until when will this issue be without a solution?" he asked.

Aides have said Abbas plans to ask the UN Security Council to demand Israel's withdrawal from all lands captured in the 1967 Mideast war to make way for an independent Palestinian state.

Abbas alluded to the plan in his speech. 

"Today, I'm going to give the Palestinian leadership my vision for a solution and after that we will continue consultations with the international community," he said. "This vision must be clear and well defined and we are not going to an open-ended negotiation."

Corrections

  • An earlier version of this story reported wrongly that a ceasefire announcement would be made in Cairo at 1 p.m. ET. In fact, the time was set for noon ET, Reuters reported, correcting an previous headline.
    Aug 26, 2014 11:40 AM ET