The rival Palestinian groups Fatah and Hamas formed a unity government in March .