"The central criminal court has studied the case of a German citizen charged with terrorism and ruled the execution by hanging," the statement read.
According to the Reuters news agency, the sentenced woman was caught during the battle against Daesh in the Iraqi city of Mosul last year. However, the spokesman refused to identify the criminal by name, the agency stated, adding that she could appeal the sentence.
In December, Iraqi authorities reportedly detained eight women from Germany, suspecting them of participation in Daesh activities.
Bagdad announced Daesh's defeat in the years-long fight against the Iraqi forces on December 9, 2017, following the liberation of the country's second largest city of Mosul, considered by the terror group to be the capital of their self-proclaimed caliphate since 2014.
About 30,000 troops from the Iraqi Armed Forces, Kurdish Peshmerga fighters and Shia militias participated in the Mosul liberation operation, begun in October 2016.
The country fell into Daesh hands in June 2014, when the terror group started quickly seizing the territory throughout that year. However, slowly but surely, they have been pushed back.