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 that Abbas had been threatening to call early elections for the past five months and that "more threats are not going to work". The announcement of elections provoked high tensions and gun battles between Hamas and Fatah supporters. Abbas strongly denied allegations that members of Fatah and the Force 17 "Presidential Guard" were behind the assassination attempt on Ismail Haniyeh, and he criticized the kidnapping of IDF soldier Gilad Shalit. On 17 December, pro-Fatah gunmen attacked Hamas' Foreign Minister Mahmoud Zahar. Pro-Hamas militiamen retaliated with shots at the home of President Abbas, wounding five guards. A member of Fatah's Force