GERMAN police arrested three alleged members of al-Qaida who had been planning attacks in the country.

The prosecutor's office in the southwestern city of Karlsruhe said the men had been taken into custody early Friday and would appear before a judge Saturday.

The three were Moroccans living in the western German state of North Rhine-Westphalia and were caught with "large amounts of explosives", it's reported.

Citing security sources, the newspaper said they were suspected of plotting attacks in Germany.

They came to the attention of the Federal Crime Office during surveillance of mobile phone and computer communications.

Bild identified them as Abdeladim K., Jamil S. and Ahmed Sh.

The Moroccan government said Saturday that al-Qaida was suspected in connection with a bomb attack Friday that killed 16 in Marrakesh.

German authorities hiked security measures in November after US authorities warned of an al-Qaida plot to carry out "Mumbai-style" attacks in Britain, France and Germany.

US authorities handed over to Germany last week the source of the tip, alleged Islamic militant Ahmed Wali Siddiqui, who had been held for nine months in Afghanistan.

According to German media, Siddiqui met with al-Qaida's third in command, Sheikh Yunis al-Mauretani, who initiated him into a plot to carry out attacks in Europe similar to those in the Indian city of Mumbai in 2008 in which 10 gunmen killed 166 people and injured more than 300.

The interior ministry announced in February that the state of alert would gradually be scaled back.

Germany, which opposed the 2003 US-led invasion of Iraq but has nearly 5000 troops in Afghanistan under NATO command, has never experienced an attack by Muslim extremists on its own soil.

In July 2006 when Islamic militants placed suitcases with homemade bombs on two regional trains at Cologne's main station. They failed to detonate.

And in 2007, three men including two German converts to Islam were caught plotting attacks on US interests in western Germany in what authorities said was a bid to mount a "second September 11."

Originally published as Germany foils al-Qaida bomb plot