Israel deliberately destroyed the infrastructure in Lebanon "we will bomb them back to the Stone Age". Lebanon was a functioning pluralistic democracy, Sunni, Shia, Christian, Druze...
sure, they made accommodations with Hamas, but it was still the Hamas military wing - not Lebanon's army - that was attacking Israel. By destroying the Lebanese military and political structure Israel made Hamas stronger in the long term for what was, frankly, a very limited short term advantage.
Bookmarks