An Egyptian court overturned a decision naming Hamas a terrorist organization Saturday, a ruling coming after months of increasing hostility to the blockaded rulers of the Gaza Strip.

The Urgent Matters Appeals Court cited a lack of jurisdiction as the reason for annulling the earlier court’s ruling.

Sami Abu Zuhri, Hamas spokesman in Gaza, welcomed the court’s ruling, saying it would have “positive consequences on the relationship between Hamas and Egypt.”

Get The Times of Israel's Daily Edition by email and never miss our top stories Free Sign Up

Egypt initially declared the group a terrorist organization in February. That ruling further isolated Hamas, which once found open support under Egypt’s toppled Islamist President Mohammed Morsi. Egypt’s new government recently has begun clearing a buffer zone along its border with Gaza Strip in an attempt to destroy a cross-border network of tunnels that Hamas considers a lifeline.

In recent months Egypt has appeared increasingly hostile to Hamas, which it has blamed for violence in the country’s restive Sinai Peninsula. The secretive movement, founded in Gaza in 1987 as an offshoot of the region’s Egyptian-originated Muslim Brotherhood, faces a growing cash crunch and has yet to lay out a strategy to extract Gaza from its increasingly dire situation.

There was no immediate government reaction to the court’s decision.

An Egyptian court banned Hamas’ military wing, the Izz ad-Din al-Qassam Brigades, and designated it a terrorist organization in January. In 2014, a similar ruling in the same court banned all Hamas activities in Egypt and ordered the closure of any Hamas offices, though the order apparently was never carried out. It wasn’t immediately clear how — or if — Saturday’s ruling would affect those previous decisions.

Copyright 2015 The Associated Press.