Ceasefire negotiations have been going on for some time, led by Egypt and Qatar, both of whom maintain working relationships with both Israel and Hamas. Egypt additionally has a close alliance with Israel, while Qatar hosts the Hamas leadership on its territory.