Two men who were born in Germany but don't have German citizenship will be deported to countries in North Africa, where their parents immigrated from, over suspicions that they were planning a terrorist attack. German officials say it's the first time the government is making such a move.

A federal judge has rejected the men's bid to avoid deportation. Police arrested the suspects, ages 22 and 27, in the city of Göttingen in a massive raid that involved 11 apartments and some 450 agents on Feb. 9. The raid turned up multiple black Islamic State flags and a range of weapons, including a machete to what looked to be replica flint-lock pistols.

From Berlin, Esme Nicholson reports:

"Investigations were dropped, but police argue the two men are dangerous. Lower Saxony's interior minister Boris Pistorius says discussions are underway with the suspects' parents' home countries, Algeria and Nigeria, to facilitate speedy deportations."He added that 'fanatics worldwide ... will face the full force of the law regardless of whether they were born here or not.' "

As Esme also notes, being born in Germany does not automatically convey citizenship. At the time of their arrest, both men were living with their parents.

"Local media said the deportation could take place quickly, and the men would be barred from Germany indefinitely," Deutsche Welle reports.

Copyright 2017 NPR. To see more, visit