Justifying a court decision banning Hamas in Egypt, President Adly Mansour on Friday blamed the Gaza-based terrorist organization for meddling in his country’s affairs.

Mansour, the acting president since the ouster of Mohammed Morsi, said that Hamas was wrong to interfere in Egypt’s internal matters by supporting the Muslim Brotherhood, reported the Palestinian Ma’an News Agency.

“An improvement in relations between Hamas and Egypt requires the cessation of the movement’s intervention in [our] internal affairs,” he said.

Earlier this month, a Cairo court forbid Hamas from operating in the country and moved to seize its assets after accusing it of colluding with the Brotherhood in carrying out attacks. Hamas was originally founded in the 1980s as an offshoot of the Muslim Brotherhood in Egypt.

Mansour added that Egypt was going to great lengths to end the division among rival Palestinian factions, according to Ma’an. He said that Palestinian representation in the international community should be uniform, under the auspices of Palestinian Authority President Mahmoud Abbas’ Fatah movement.

Egypt never recognized Hamas’s rule in Gaza after it forcibly ousted the more moderate Fatah party from the Strip in 2007.

A Palestinian woman walks past a propaganda poster for the Hamas terrorist organization on March 5, 2014 in Gaza City, in the Gaza Strip (photo credit: AFP/Thomas Coex)

A Palestinian woman walks past a propaganda poster for the Hamas terrorist organization on March 5, 2014 in Gaza City, in the Gaza Strip (photo credit: AFP/Thomas Coex)

Gazans celebrated in the streets when Morsi became Egypt’s first freely elected leader in June 2012, a year and a half after Hosni Mubarak was toppled by an Arab Spring uprising.

But last year, the Egyptian army overthrew Morsi following massive protests against his divisive rule and has since designated the Muslim Brotherhood a terrorist organization.

AFP contributed to this report.