The history behind the situation and the solution is complicated.
I donāt think the morality is, though, because of just how asymmetrical the power is. Hamas being bad does not justify what Israel is doing, nor does their belief that the land belongs to them.