Battle of Gaza (2007) were boycotted by both Hamas and Islamic Jihad. The election resulted in PLO and Fatah chairman Mahmoud Abbas being elected President to a four-year term. On 8 February 2005 the Palestinian Authority President Mahmoud Abbas and Israeli Prime Minister Ariel Sharon announced a cease-fire. On 17 March 2005 Hamas endorsed the ceasefire. On 19 March 2005 twelve Palestinian factions, including Fatah, Hamas, Islamic Jihad, Popular Front for the Liberation of Palestine (PFLP) and Democratic Front for the Liberation of Palestine (DFLP) signed the Palestinian Cairo Declaration, which reaffirmed the status of the Palestine Liberation Organization (PLO) as the sole legitimate
Fatah–Hamas conflict Fatah. When Abbas and Hamas in the struggle for power failed to reach an agreement, Abbas appointed, on 6 April 2006, the Fatah-affiliated Abu Shbak head of the Security Forces, by-passing the Hamas Interior Minister. In response, Hamas formed its own security force. On 25 June 2006, militant groups conducted a cross-border raid into Israel. The Israeli response left Hamas with half its parliamentary bloc and its cabinet ministers in the West Bank in Israeli custody. The semi-constitutional and semi-presidential "Basic Law" gave President and Government a shared political power. Fatah refused to cooperate with Hamas. The powerful Fatah-backed President