Hamas took power in Gaza when ?
The efforts to impose Islamic law and traditions continued when Hamas forcefully seized control of the area in June 2007 and displaced security forces loyal to the secular President Mahmoud Abbas .