Two former German soldiers attempted to set up a paramilitary unit of 100 to 150 people in order to take control of an area held by the Houthi rebels in Yemen.
Two former German soldiers were convicted of trying to form a terrorist group to intervene in Yemen's civil war.
They were found guilty of attempting to form a terrorist organisation.
The Stuttgart state court said on Monday the two men, aged 61 and 53, were given suspended sentences of 18 months and 14 months.
It didn't release their names.
The two men decided in April 2021 to set up a paramilitary unit of 100 to 150 people, predominantly current and former German soldiers, the court found.
They aimed for the group to take control of an area held by the Iran-backed Houthi rebels, forcing peace talks between them and Yemen's internationally recognised government.
The court said the defendants were influenced by "ideas coloured by Christian fundamentalism" and by a desire to make money.
The court said one defendant tried to contact Saudi officials to obtain financial and military help, while the other tried to recruit former and current soldiers.
Although they succeeded neither in attracting a big investor nor in getting anyone to join their unit, they stuck to their plans until they were arrested a year ago, the court said. Their trial opened in June and, in August, they were released on bail after 10 months in custody.
The defendants confessed at the trial and had no previous convictions, the court said. It added that no one is appealing the verdict.
War has raged for eight years in Yemen between Houthi rebels and pro-government forces backed by a coalition of Gulf Arab states.
The Houthis swept down from the mountains in 2014, occupied northern Yemen and the country’s capital, Sanaa, and forced the internationally recognised government to flee into exile to Saudi Arabia.
READ MORE: Germany's cybersecurity chief sacked over links with Russian intelligence