It was basically done int he 2 years leading up to the Oct 7th attack and was one fo the major motivating factors for the attack.
The other one was that Israel completely disregarded the Palestinian border and were settling Palestinian lands despite the agreement to the contrary and peace. Why would Palestine maintain peace when Israel just comes and takes up land and settles it whenever they feel like it even if they are being peaceful?