Prime minister for most of the last 15 years, Netanyahu has been an enabler of Hamas, building up the organisation, letting it rule Gaza unhindered – save for brief, periodic military operations against it – and allowing funds from its Gulf patrons to keep it flush. Netanyahu liked the idea of the Palestinians as a house divided – Fatah in the West Bank, Hamas in Gaza – because it allowed him to insist that there was no Palestinian partner he could do business with. That meant no peace process, no prospect of a Palestinian state, and no demand for Israeli territorial concessions.
https://www.theguardian.com/commentisfree/2023/oct/20/benjamin-netanyahu-hamas-israel-prime-minister
https://responsiblestatecraft.org/benjamin-netanyahu-israel/