Gaza was not under occupation. It was blockaded because after the occupation ended they decided to ramp up attacks on Israel via. rockets and suicide bombings.
https://www.reuters.com/world/middle-east/palestinian-killed...
And the Occupation was still increasing.
https://www.eeas.europa.eu/delegations/palestine-occupied-pa...