Although the conflict between Iran and its Sunni rivals and the Syrian civil war forced it to loosen ties with Iran and Syria and move into the Sunni fold, in many respects this has been a comfortable shift. Hamas feels more confident next to an Egypt dominated by its parent movement.