Egyptian President Hosni Mubarak apparently needed little encouragement, for he too wanted to isolate Hamas, and this prevented until recently Egypt's intelligence service, which exerts a powerful influence in Gaza, from brokering a deal.
BBC: Why was Gilad Shalit not freed sooner?