Egypt has occasionally served as mediator between Hamas and Fatah, seeking to unify the two factions. In 2017, Yahya Sinwar visited Cairo for 5 weeks and convinced the Egyptian government to open the Rafah crossing, letting in cement and fuel in exchange for Hamas committing to better relations with Fatah; this subsequently led to the signing of the 2017 Fatah–Hamas Agreement.
Egypt has occasionally served as mediator between Hamas and Fatah seeking to unify the two factions In 2017 Yahya Sinwar visited Cairo for 5 weeks and convinced the Egyptian government to open the Rafah crossing letting in cement and fuel in exchange for Hamas committing to better relations with Fatah; this subsequently led to the signing of the 2017 Fatah–Hamas Agreement