Prosecutors have formally charged four men with membership in a terrorist organization after allegations they planned to carry out an Al Qaeda attack in Germany.

Federal prosecutors said Thursday the group's leader -- 30-year-old Moroccan national Abdeladim El-Kebir -- is also accused of undergoing training at a terror camp in the Afghanistan-Pakistan border region.

They say he recruited and indoctrinated the group's other members, whose last names were not provided in line with German privacy laws.

The 32-year-old German-Moroccan Jamil S. was accused of being responsible for helping produce explosives, while 20-year-old German-Iranian national Amid C. and 27-year-old German citizen Halil S. are alleged to have had mostly logistical tasks.

The men were arrested last year.