Who’s occupying whose land, according to what? Israel wasn’t in Gaza on Oct 6th, but Palestinians & Hamas & Friends were sure in Israel Oct 7th.
Or are you going back to 1967 borders, 1948 borders, 1919 borders, etc…? Or are you referring to something else again that you haven’t expanded upon yet?
Is it ‘cuz Israel is on land that’s between the Jordan River or the Mediterranean Sea?
Is it ‘cuz the 1967 borders changed with that war? Is it ‘cuz the 1948 borders changed with that war?
The war began when Hamas-led militant groups
launched a surprise attack on Israelon 7 October, involving a barrage of several thousand
rockets concurrent to an estimated 3,000 militants breaching the
Gaza–Israel barrier and attacking Israeli civilian communities and military bases. During this attack, 1,139 Israelis and foreign nationals including 766 civilians and 373 security personnel were killed,
https://en.m.wikipedia.org/wiki/Israel–Hamas_war#cite_note-115 while 252 Israelis and foreigners were taken captive to the Gaza Strip. Hamas said its attack was in response to Israel's expansion of settlements, persisting blockade, and threats to the Al-Aqsa Mosque.
After clearing militants from its territory, Israel tightened its blockade and launched one of the most destructive bombing campaigns in modern history, before commencing a large-scale ground invasion on 27 October with the stated objectives of destroying Hamas and releasing the hostages.