BUCHAREST, Romania (AP) — Romania's intelligence agency says a Bucharest court has ruled that six foreigners have been banned from the country due to their links with al-Qaida and the Islamic state.

The Romanian Intelligence Service said late Friday that a court has declared the six "undesirable" and banned them from Romania for three to six years. It said the six were working for companies with foreign capital and had been under surveillance since 2013.

It said the six "maintained and developed links with terrorist elements outside the country," promoting the Islamic State and al-Qaida and recruiting people for ideological and military purposes.

It did not specify whether they had already been expelled.

One was a Tunisian national. There was no information about the others.