The main Palestinian parties on Tuesday announced a deal to form a national unity government prior to the holding of electionsinfo-icon, after three days of reconciliation talks in Moscowinfo-icon.

"We have reached agreement under which, within 48 hours, we will call on (Palestinian leader) Mahmud Abbas to launch consultations on the creation of a government" of national unity, senior Fatah official Azzam al-Ahmad told a press conference, speaking in Arabic.

Ater the government is formed, the Palestinians would set up a national council, which would include Palestinians in exile, and hold elections.

"Today the conditions for (such an initiative) are better than ever," said Ahmad.

The non-official talks in Moscow began on Sunday under Russian auspices with the goal of restoring "the unity of the Palestinian people." Representatives came from Fatah, Hamas, Islamic Jihadinfo-icon and other factions.

Abbas's secular party Fatah and the Islamist Hamas have been at loggerheads since the latter seized Gazainfo-icon in a near civil warinfo-icon in 2007.

Last year the Palestinian government postponed the first municipal polls in the occupied West Bank and Gaza Strip in 10 years after the high courtinfo-icon ruled they should be held only in the Fatah-run West Bank.

The last time the Palestinians staged elections in which both Hamas and Fatah took part was in 2006.

The Palestinian representatives also met on Monday with Russian Foreign Minister Sergei Lavrov, and asked him to dissuade incoming USinfo-icon president Donald Trumpinfo-icon from carrying out a campaign pledge to move the US embassy in Israelinfo-icon from Tel Aviv to Jerusaleminfo-icon.

Israel captured east Jerusalem during the 1967 war and later annexed it -- in a move not recognised by the international community -- declaring all of the city its unified capital.

"We sensed understanding on the part of Mr. Lavrov," said Ahmad.

Ahmad and Moussa Abu Marzouk of Hamas spoke derisively of the Quartet -- the United Statesinfo-icon, Russiainfo-icon, the EU and UN -- in its years-long effort to end the Israeli-Palestinian conflictinfo-icon.

"The Quartet's work completely failed. It was unable to advance the decisions taken by the international community, including (UN) resolutions," said Ahmad.

"It is imperative to find a new working mechanism for the Israeli-Palestinian conflict," he said.

In another development on Monday, the Palestinian diplomats met with Russian Foreign Minister Sergei Lavrov, asking Moscow to help dissuade US President-elect Donald Trump from fulfilling his campaign pledge to move Washington's embassy in Israel from Tel Aviv to Jerusalem al-Quds, which the Palestinians want as the capital of their future state.

"We sensed understanding on the part of Mr. Lavrov," Ahmad said following the meeting.

Prior to the talks in the Russian capital, the Palestinian Authority had also asked Russia to intervene to stop the potential relocation of the US embassy in Israel.

The unity deal comes at a critical juncture amid growing international pressure on Israel over its occupation of Palestinian territories.

Israeli paper Haaretz quoted a Fatah official present at the Moscow talks as saying that "the unity government is of strategic importance for the Palestinians" given the recent peace conference in Parisinfo-icon, the UN Security Council's Resolution 2334 criticizing the settlements as well as Trump's election.