A court has convicted four men over a foiled 2007 plot to attack U.S. targets in Germany and given them prison sentences of up to 12 years.

Three of them — Fritz Gelowicz and Daniel Schneider, both German converts to Islam, and Turkish citizen Adem Yilmaz — were convicted of membership in a terrorist organization and other offenses. The fourth, Turkish citizen Attila Selek, was convicted of supporting a terrorist organization.

Gelowicz and Schneider were sentenced to 12 years in prison. Yilmaz was given 11 years and Selek five.

The men were accused of operating as a German cell of the radical Islamic Jihad Union and charged with plotting bombing attacks in Germany against American citizens and facilities including the U.S. Air Force's Ramstein base.