Iraqi Federal Police members hold an ISIS flag, which they pulled down during fighting between Iraqi forces and ISIS militants, in the Old City of Mosul

An Iraqi court on Sunday sentenced to death a German woman of Moroccan origin for membership of ISIS, a spokesman said.

The German national was captured by Iraqi forces during the battle for Mosul last year, the spokesman said, declining to identify her. She is the first foreign woman to be sentenced to death in Iraq for joining the militant group.

She can appeal the sentence, said Abdul-Sattar al-Birqdar, spokesman for Iraq's Supreme Judicial Council in Baghdad.

"She confessed that she traveled with her two daughters from Germany to Syria and then joined Daesh in Iraq," Birqdar said, referring to ISIS by an Arabic acronym. 

SEE ALSO: ANALYSIS: Stronger, stable Middle East states the most effective answer to ISIS

The woman was convicted of participating in attacks on Iraqi security forces and offering the militant group logistical support, said Birqdar.

A German foreign ministry spokeswoman declined to comment. 

Foreign fighters 
Thousands of foreigners have been fighting for ISIS in Iraq and Syria.

A Russian Islamic State fighter was sentenced to death in Iraq last year for joining the hardline group.

Iraq declared victory last month over ISIS, which had seized control of nearly a third of the country in 2014. However, ISIS continues to carry out bombings and other attacks in the country.

source: Alarabiya