This arrangement led to a period of cohabitation after the 2006 legislative election, in which Fatah President Mahmoud Abbas appointed Hamas leader Ismail Haniyeh Prime Minister after Hamas' victory in the elections.