Palestinian rival factions Fatah and Hamas have agreed to form a unity government and hold parliamentary elections within six months, a senior official said on Monday.

Mohammed Ashtiya, a member of the Fatah Central Committee, said that representatives from the two organizations had reached some understandings toward reconciliation during meetings begun in February in Doha, the capital of Qatar.

The sides agreed to establish a national unity government encompassing Fatah, Hamas and other Palestinian factions and to hold elections for the legislative council and the presidency within six months.

Get The Times of Israel's Daily Edition by email and never miss our top stories Free Sign Up

They also agreed that the unity government would work according to Palestine Liberation Organization guidelines, Ashtiya said. However, he did not make any reference to some of the more critical issues that have divided Hamas and Fatah, such as the fate of prisoners, political arrests, and the return of Palestinian Authority rule to the Gaza Strip.

Both sides were represented by high-ranking members, with Hamas sending political chief Khaled Mashaal and senior leader Moussa Abu Marzouk, and Fatah sending Central Committee members Azzam al-Ahmad and Sakhr Basiso, Fatah official Ali Barakeh told the London-based daily A-Sharq Al-Awsat when the talks started early last month.

Fatah controls the Palestinian Authority, which rules in the West Bank, while Hamas wields power in the Gaza Strip. The two groups have been at loggerheads almost constantly since Hamas won elections in the Palestinian Authority in 2006 and subsequently staged a violent takeover of Gaza.

Many meetings have been held over the years and three agreements were signed — in Qatar, Cairo and Gaza — but none has led to any real change on the ground.

The PA security agencies have continued arresting and harassing Hamas operatives in the West Bank unabated, while Hamas has placed hundreds of Fatah members in Gaza under house arrest, at times even shooting at its members. Media outlets for the competing factions have continuously defamed one another.

Qatar is the latest would-be mediator. It stepped into the void after Egypt, which is at odds with Hamas, refused to host meetings between the two rival factions.

Times of Israel staff contributed to this report.