The Israel-Hamas deal was made possible by 18-hour days and a "remarkable" partnership between Joe Biden and Donald Trump's Mideast envoys -- but even then it seemed it might come apart at the last minute.
In the final four days of talks, Biden's pointman Brett McGurk was joined in the region by Trump's envoy, Steve Witkoff, to get the deal over the line, US officials said.
As they did so, Israeli and Hamas negotiators were huddling on separate floors of a building in the Qatari capital Doha, while moderators from Qatar and Egypt shuttled between them with their proposals.
READ:Thousands across Gaza celebrate ceasefire deal McGurk and Witkoff were talking "multiple times a day, and Mr Witkoff actually helped clinch down some of the details.