Hamas is an Islamist organization with a military wing that came into being in 1987, emerging out of the Muslim Brotherhood, a Sunni Islamist group that was founded in the late 1920s in Egypt.
The group, like most Palestinian factions and political parties, insists that Israel is an occupying power and that it is trying to liberate the Palestinian territories. It considers Israel an illegitimate state and has called for its downfall.
Unlike some other Palestinian factions, Hamas refuses to engage with Israel. In 1993, it opposed the Oslo Accords, a peace pact between Israel and the Palestine Liberation Organization (PLO) that saw the PLO give up armed resistance against Israel in return for promises of an independent Palestinian state alongside Israel. The Accords also established the Palestinian Authority (PA) in the Israeli-occupied West Bank.
Hamas presents itself as an alternative to the PA, which has recognized Israel and has engaged in multiple failed peace initiatives with it. The PA, whose credibility among Palestinians has suffered over the years, is today led by President Mahmoud Abbas.