There is at least one PhD and two postdocs in that question, but I shall try to summarise relatively briefly:
Ever since the conclusion of the 1st Palestinian Intifafa and the subsequent Oslo Accords, the so-called "Two State Solution", i.e. the creation of a Palestinian state in Gaza and the West Bank has been the official position of the so-called international community on the question of how the Israeli-Palestinian conflict could and should be laid to rest.
This is how the Palestinian Authority (PA) was created, led by representatives of the Palestine Liberation Organisation (PLO), dominated by Fatah and - back in the day - PLO chairman Yasser Arafat.
But, while this is the dominant school of thought, the two-state-solution has always had its enemies - Netanyahu being one of them (whatever he pays lip service to).
Preventing the implementation of a two-state solution has, in essence, been the political legacy of one Benjamin Netanyahu - and making sure one never happens has required some sort of plausible claim to "but, oh, there is no partner for peace". Therefore, the PA - corrupt and despised as it already was - needed to be weakened further, lest it gain any serious momentum or further legitimacy!
Enter Hamas! Bibi loved them! He regarded them as a way to prevent Palestinian unity - and Palestinian unity, in his mind, was the worst thing that could ever happen! The PA were unpopular and corrupt - Hamas, while Islamist and considered "distasteful" by Western governments ran on an anti-corruption program and were doing quite well in terms of gaining populatity. Not, for the record, for their militancy but for their social programs.
Bibi loved it and thought they were the best thing that could ever happen to him!
He is a cynical narcissist, of course, and wants to stay in power at any cost. So, in spite of how well documented this is: please expect him to say he never said/thought/did this - in fact, it was ... [he will try and find some way to blame one of his domestic opponents; he just works that way]!