An Egyptian court on Saturday banned the armed wing of the Palestinian group Hamas and listed it as a terrorist organization.
Hamas is an offshoot of Egypt's Muslim Brotherhood which the authorities have also declared a terrorist group and have repressed systematically since the army ousted one of its leaders, Mohamed Morsi, from the presidency in 2013.
The ruling came days after the country faced some of the bloodiest attacks on security forces in years. During Morsi’s one-year presidency, militants in Sinai kidnapped 7 soldiers and killed 16 others.
"The court ruled to ban the Qassam Brigades and to list it as a terrorist group," said judge Mohamed al-Sayid of the special Cairo court which deals with urgent cases.
The court case was based on allegations that the Qassam Brigades, staged terrorist attacks to support the Brotherhood, and carried out a bombing and shooting operation which killed 33 security personnel in the Sinai Peninsula in October of 2014.
"We reject the Egyptian court's decision against the Qassam Brigades. It is a political, dangerous decision that serves only the Zionist occupation," said Hamas spokesman Sami Abu Zuhri.
Egyptian officials say weapons are smuggled from the Hamas-ruled Gaza Strip into Egypt, where they end up with militant groups fighting to topple the Western-backed Cairo government.
Militants based in Egypt's Sinai region, which has a border with Gaza, have killed hundreds of police and soldiers since Morsi's political demise. The insurgency has spread to other parts of Egypt, the most populous Arab country.
On Thursday night, four separate attacks on security forces in North Sinai were among the worst in years. Islamic State's Egyptian wing, Sinai Province, claimed the killing of at least 30 soldiers and police officers.
President Abdel Fattah el-Sissi, who toppled Morsi in July 2013, brought a degree of stability to Egypt and the economy had started to recover from frequent political violence since a popular uprising four years ago that overthrew veteran autocrat Hosni Mubarak.
Then signs of discontent emerged in the past week. More than 25 people were killed last weekend when security forces fired at protesters angered by what many perceive as a police state re-established by Sissi since Morsi's fall.
Egyptian officials say the Brotherhood, Islamic State group, al-Qaida and Sinai Province, previously called Ansar Bayt al-Maqdis, share the same ideology.
The Brotherhood says it is committed to peaceful activism despite facing one of the toughest crackdowns in its history.
Militant attacks in Sinai, while far from Cairo and tourist attractions, have hurt government efforts to project an image of stability to win back foreign investors and tourists.
On Saturday, a sniper wounded a soldier in a village in central Sinai, security sources said. In northern Sinai, militant gunmen killed a Christian man suspected of cooperating with Egyptian authorities.