Egypt has scrambled over the past week to help prevent tensions from escalating between Israel and Hamas in the Gaza Strip. Over the last year Cairo has played a key role in tamping down the near weekly escalations.Since March 25, when a long-range rocket was fired at Israel and Jerusalem rushed an armored and infantry brigade to the Gaza border, Egyptian officials have helped broker a ceasefire. The ceasefire went into affect in the evening but was subsequently broken in the last days. The recent effort was announced by Hamas spokesman Fawzi Barhoum on March 26. Egyptian officials reportedly worked throughout March 27 and Thursday to discuss a series of issues, including the 12-year blockade of the Gaza Strip and Hamas ending its drizzle of rockets. But Hamas wants to keep the momentum of its year-long Great March of Return.That ongoing protest, now marking its year anniversary, has led to more than 260 deaths and thousands of injured in Gaza. It has also seen a major escalation in rocket fire, including more than 460 rockets fired in November, and a long range rocket fired at Beersheba in October. The clashes were worst when the US moved its embassy from Tel Aviv to Jerusalem in May. Israel has altered its tactics, and so has Hamas. Incendiary balloons have become a mainstay, as have night-time rioting and Tuesday rioting near the beach.From Egypt’s point of view, it is important that the quiet be maintained in Gaza and the situation not spiral out of control. Egypt has a historic role in Gaza dating back to the 1948-1967 period when it occupied Gaza. But its current role there is more complex. Unlike Jordan, Egypt never became home to large numbers of Palestinians, nor did it grant them citizenship or become a protector of the holy sites in Jerusalem. The people in Cairo and Gaza are not nearly as closely connected. Yet Egypt has an important role because Gaza adjoins the Sinai, and because terrorist smuggling networks have operated in Sinai. In addition, Hamas as a movement is rooted in and related to the Muslim Brotherhood in Egypt, which the current Egyptian government loathes. Yet as mediators, the Egyptians have played an impressive and unprecedented role. Egypt has played a key role for decades, particularly in helping end the 2012 and 2014 conflicts.To understand that role, we need to recognize that Israel and Hamas have been engaged in a kind of war over the last year with so many rockets and high enough casualties that it can be compared to the First Intifada in terms of casualties and the 2009 war in terms of rocket fire. That is no small thing, and yet at every step Egypt has helped prevent a massive escalation that would have resulted in an Israeli ground operation and larger numbers of casualties. Gaza is still recovering from the 2014 war. Hamas wants to remain relevant after 12 years in power yet has little to show for it.Meanwhile the Palestinian Authority has cut salaries in Gaza, and Qatar has stepped in to pay $15 million in cash payments a month. From Ramallah’s perspective, the prospect of a separate Israel-Hamas deal is a disaster. At the same time the PA is isolated because the Trump administration recognized Jerusalem and cut funding to UNRWA, which has caused a crises in the PA and anger at the US. The US has gone further, trying to evict Palestinian representatives from Washington.Herein lies an opening, oddly, for Hamas. Israel loathes Hamas, which carried out many bus bombings in the 1990s and 2000s. But Israel benefited from a divided Palestinian Authority, and Israel wants quiet in Gaza, not another war. Israel has indicated as much through its focus on the Iranian threat. So Iran also tries to stoke tensions in Gaza, at least two times prodding its Islamic Jihad proxies in Gaza to fire at Israel last year and this year.How does Hamas view the Egyptian mediation? Hamas has frequently thought to thank Egypt for its help, realizing Cairo is its own access point to the outside world. It hailed Egyptian efforts on December 5. Ismael Haniyeh thanked Egypt, along with Qatar, Iran and Kuwait, on December 16. Hamas officials also met Egyptian journalists in February, spoke of “bilateral relations” developing with Egypt on January 17, and hoped Egypt would open the Rafah crossing on January 14. Hamas also condemned terrorist attacks in Egypt to show its solidarity. Gazans are also treated at Egyptian hospitals, an issue Hamas recognized in November 2018 and February of this year.Reading through a year of Hamas press releases, one senses how Hamas views the Egyptian role. Here is what Hamas says. On November 15, Hamas leader Sinwar met an Egyptian delegation, Egypt brokered a ceasefire on November 18 and on November 25 a Hamas delegation visited Cairo, meeting Egyptian intelligence officers on November 30, according to Hamas. In December, relative quiet prevailed under an Egyptian-mediated ceasefire. Hamas met a senior Egyptian delegation on January 11. On February 4-5, Hamas met another Egyptian intelligence delegation. Egypt sent Hamas an invitation to talks on February 6, and Hamas senior members went to Cairo on February 26. Days later, Egypt prepared for a new round of talks and Hamas met a delegation on March 8. Egypt has “doubled” its efforts, Hamas said. On March 24 Egypt succeeded in its efforts at mediation.Overall, Egypt is clearly a constant and key player in Gaza. The UN has been involved in these negotiations as well, but the consistent player is Egypt. It has also worked for Palestinian reconciliation. Israel and Egypt are more mum on the outcome of the negotiations and details. Reports indicated last November that one sticking point was relaxing the blockade of Gaza. Egypt has not been opposed to Qatar paying salaries in Gaza, indicating the PA has been the main opposition body. Palestinian Authority Prime Minister Rami Hamdallah even refused to meet UN officials in October, claiming the UN was involved in reconciliation efforts between Hamas and Israel.We know this because Ramallah has been deeply hostile to deals between Israel and Hamas, and Egypt’s president has sought to persuade Mahmoud Abbas to accept a truce agreement, according to reports in November last year. Fatah warned Hamas in August 2018 not to reach a deal with Israel. The August discussions involved a potential five-year truce. Egypt tried again in October. The high point of the discussions was in August 2018. This came in the wake of rising tensions in July. Egypt had to work to salvage its ceasefire in September though. In November, Abbas appeared increasingly isolated. In January, Egypt had invited Abbas for more meetings.We know that push for an Israel-Hamas truce dates back to at least May of last year, when both Egypt and Qatar were involved after the clashes that had left many dead and injured along the border due to Hamas encouraging violent protests. The deeper discussions date to a reconciliation agreement in October 2017 brokered by Egypt. This percolated on into February 2018 when it began to break down. An assassination attempt against Hamdallah and Majed Faraj in March in Gaza didn’t help. The PA removed its staff from Rafah in January 2019.Egypt has played a responsible role, particularly as the PA has distanced itself from Hamas, Israel and the US, and has been having its own internal discussions about how to best respond and manage its affairs. But after numerous ceasefires over the past year, the question is if something less than temporary will ever be achieved. For now most of the discussions are in the shadows, which preclude a long-term and transparent understanding.