In competition with the secular Fatah political party which dominated the Palestinian national movement, Hamas drew up a charter and built a military wing to resist Israel’s occupation.