After Israel released Ahmed Yassin from prison in 1997, Haniyeh was appointed to head his office. His prominence within Hamas grew due to his relationship with Yassin and he was appointed as the representative to the Palestinian Authority. His position within Hamas continued to strengthen during the Second Intifada due to his relationship with Yassin, and because of the assassinations of much of the Hamas leadership by the Israeli security forces. He was targeted by the Israel Defense Forces for his alleged involvement in attacks against Israeli citizens. Following a suicide bombing in Jerusalem in 2003, he was slightly injured on his hand by an Israeli Air Force bomb attack attempting to eliminate the Hamas leadership. In December 2005, Haniyeh was elected to head the Hamas list, which won the Legislative Council elections the following month. Haniyeh succeeded Khaled Mashaal’s head leadership of Hamas in elections held in 2016.