US President Joe Biden said that the ceasefire brought “genuine opportunity” for progress.
On Thursday more than 100 Israeli airstrikes targeted Hamas infrastructure in the north of Gaza. Hamas retaliated with rocket fire.
Fighting began in Gaza on 10 May after weeks of rising Israeli-Palestinian tension in occupied East Jerusalem that culminated in clashes at a holy site revered by both Muslims and Jews. Hamas began firing rockets after warning Israel to withdraw from the site, triggering retaliatory airstrikes.
At least 232 people, including more than 100 women and children, have been killed in Gaza, according to its Hamas-controlled health ministry. Israel has said at least 150 militants are among those killed in Gaza. Hamas does not give casualty figures for fighters.
The Israeli Political-Security Cabinet said in a statement that it had “unanimously accepted the recommendation” for a ceasefire adding that the political echelon emphasizes that the reality on the ground will determine the continuation of the campaign.
Israeli Defence Minister Benny Gantz said on Twitter that the Gaza offensive had yielded “unprecedented military gains”.
However, a Hamas official that the ceasefire announced by Israel amounts to a “victory” for the Palestinian people and a defeat for Israeli Prime Minister Benjamin Netanyahu.
Soon after the ceasefire started at 02:00 on Friday (23:00 GMT Thursday), large numbers of Palestinians took to the streets of Gaza in cars and on foot to celebrate.
Loudspeakers from mosques pronounced “the victory of the resistance achieved over the Occupation during the ‘Sword of Jerusalem’ battle”.
But Basem Naim, from the Hamas Council on International Relations, told the press that he was sceptical about whether the truce would last.
“Without justice for Palestinians, without stopping the Israeli aggression and Israeli atrocities against our people in Jerusalem, the ceasefire will continue to be fragile,” he said.
“It’s true that the battle ends today but Netanyahu and the whole world should know that our hands are on the trigger and we will continue to ramp up the capabilities of this resistance,” he added.
On both sides, survivors and the bereaved from missiles and bombs are not claiming victory. By far the majority of the dead and injured are Palestinians in Gaza, which also suffered hundreds of millions of dollars of physical damage.
Speaking at the White House, US President Joe Biden said he commended Mr Netanyahu in a phone call after the ceasefire agreement was announced.
“The United States fully supports Israel’s right to defend itself against indiscriminate rocket attacks from Hamas and other Gaza-based terrorist groups that have taken the lives of innocent victims in Israel,” Mr Biden said.
He said the Israeli prime minister shared his appreciation for Israel’s US-backed defence system, known as the Iron Dome, “which our nations developed together and which has saved the lives of countless Israeli citizens – both Arab and Jew”.
Mr Biden also praised Egypt’s President Abdel Fattah al-Sisi for brokering the ceasefire, before turning to the human cost of the conflict.
“I send my sincere condolences to all the families, Israeli and Palestinian, who have lost loved ones and my hope for a full recovery for the wounded,” he said.
The president said the US “remains committed to working with the United Nations” in providing humanitarian assistance to Gaza and in reconstruction efforts in the enclave. He added that this would be done “in full partnership with the Palestinian Authority, not Hamas”.
President Sisi said he had received Mr Biden’s phone call with “utter happiness”, adding that they “exchanged visions around reaching a formula that would calm the current conflict between Israel and Gaza”.
On Wednesday, US President Joe Biden told Mr Netanyahu “that he expected a significant de-escalation today on the path to a ceasefire”.
Egypt, Qatar and the UN have played leading roles in mediating the ceasefire talks between Israel and Hamas, which rules Gaza.
President Sisi has ordered two security delegations into Israel and the Occupied Palestinian Territories to work towards upholding the ceasefire, according to Egyptian state TV.