Israel and Palestinian Islamist group Hamas will start a four-day truce on Friday morning with the first batch of Israeli hostages released later that day, mediators in Qatar said.
The agreement - the first in a brutal, near seven-week-old war - would begin at 7 a.m. local time (0500 GMT) and involve a comprehensive ceasefire in north and south Gaza, a spokesperson for Qatar's foreign ministry said.
Aid would start flowing into Gaza, Israeli hostages would be freed at 4 p.m. and it was expected that Palestinians would be released from Israeli jails as part of the deal, ministry spokesperson Majed Al-Ansari told reporters in Doha.
Hamas - who had been expected to declare a truce with Israel a day earlier on Thursday only for negotiations to drag on - confirmed on its Telegram channel that all hostilities from its forces would cease