Judge Suhail Abdullah read out the sentences in Iraq's Central Criminal Court, saying he found French citizen Lahcen Ammar Gueboudj, 55, and the German, Nadia Rainer Hermann, 22, guilty of joining the hardline militant group.
The sentences can be appealed.
Hermann had already been sentenced to a year in jail for entering Iraq illegally. Embassy staff and translators from both countries attended Monday's hearing.
French woman sentenced to life for Islamic State membership in Iraq
Islamic State captured a third of Iraq in 2014 but was largely defeated there and in neighboring Syria last year. Iraq's government declared victory over the group in December.
Iraq is trying hundreds of suspected members, many of whom were arrested as the group’s strongholds crumbled throughout Iraq. This includes hundreds of foreigners.
Around 20 foreign women, including nationals of Turkey, Germany and Azerbaijan, have been sentenced to death.
COMMENTS (1)
Comments are moderated and generally will be posted if they are on-topic and not abusive.
For more information, please see our Comments FAQ