An Egyptian court on Tuesday ordered Al-Jazeera’s local affiliate to stop broadcasting along with three other stations known for their coverage of Islamist protests, saying that they had operated illegally, the state news agency said.

The decision by the administrative court was expected amid an escalating campaign by the government against the TV station and other media it considers sympathetic to ousted President Mohamed Morsy.

Last week, three government ministries issued a statement calling the broadcasts of Al-Jazeera Mubasher Misr a “national threat” and accusing it of spreading rumours. They said that the station would soon be ordered closed.

The station extensively covered Muslim Brotherhood protests following the July 3 military coup that ousted Mr. Morsy after millions took to the streets demanding he step down.

Al-Jazeera’s local offices were raided after Mr. Morsy was deposed, and 28 staffers were detained. They were later released.