Palestinian rivals that include Hamas and Fatah agreed to form a unity government at talks China hosted, Beijing said on Tuesday, a deal meant to deliver a post-war Gaza administration that Israel quickly rejected as it seeks to crush Hamas.

Analysts said the agreement would prove hard to implement, with complications including the deep enmity between Palestinian factions and Western opposition to Hamas having any role in governance.

No timetable was declared for implementation.