Hamas announced Tuesday it had signed an agreement in Beijing with other Palestinian organizations including rivals Fatah to work together for "national unity", with China describing it as a deal to rule Gaza together once the war ends.

Chinese Foreign Minister Wang Yi, who hosted senior Hamas official Musa Abu Marzuk, Fatah envoy Mahmud al-Aloul and emissaries from 12 other Palestinian groups, said they had agreed to set up an "interim national reconciliation government" to govern post-war Gaza.