Hamas took power in Gaza when ?
In June 2007 , internal fighting broke out between Hamas and Fatah and Hamas fully consolidated its power by staging an armed coup d'état and taking control of the Gaza Strip .