Israeli and Palestinian leaders have reached a tacit truce that could prevent a new war in the Gaza strip after five days of clashes.

The agreement, brokered by Egypt, was made on Monday night, with both sides warning that they would resume fighting if attacked again. 

Ismail Haniyeh, prime minister of Gaza's Hamas government, praised the main armed factions in the occupied Palestinian territory for agreeing to the truce.