Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

BAGHDAD — An Iraqi court has sentenced 16 Turkish women to death by hanging for joining the Islamic State, a judiciary spokesman said on Sunday.

Iraq is conducting the trials of hundreds of foreign women who have been detained with hundreds of their children since August by Iraqi forces as Islamic State strongholds crumbled.

The central criminal court issued the sentences "after it was proven they belong to the Daesh terrorist group and after they confessed to marrying Daesh elements or providing members of the group with logistical aid or helping them carry out terrorist attacks," said Judge Abdul-Sattar al-Birqdar, referring to the militant group using an Arabic acronym.

Related: ISIS still has up to 10,000 loyalists in Syria and Iraq, warn experts

Let our news meet your inbox. The news and stories that matters, delivered weekday mornings. This site is protected by recaptcha

All the verdicts are subject to appeal, he told Reuters.

A member of the Iraqi rapid response forces walks past a wall painted with the ISIS flag in eastern Mosul on Jan. 8. Alaa Al-Marjani / Reuters file

Thousands of foreigners have fought on behalf of Islamic State in Iraq and Syria since at least 2014. Many foreign women came — or were brought — from overseas to join the militants.

More than 1,300 women and children surrendered to Kurdish Peshmerga in August, after government forces expelled the jihadist group from the northern Iraqi city of Tal Afar. Their numbers have since swelled to about 1,700 as more foreign nationals surrendered or were captured during operations to root out the militants, according to aid officials.

Another Turkish woman was sentenced to death last week and 10 others of various nationalities to life in prison, all for alleged Islamic State membership.

Related: Generation ISIS: When Children Are Taught to Be Terrorists

A German woman was sentenced to death last month for belonging to the group and a Russian fighter was also sentenced to death in Iraq last year for joining the hardline group.

Iraq has handed over to Russia four women and 27 children suspected of having ties to the group, the foreign ministry said on Thursday, adding that they were "tricked" into joining the militants.

Iraq declared victory over ISIS in December, which had seized control of nearly a third of the country in 2014. The group has been driven out of all population centers it once controlled on both sides of the Iraqi-Syrian border, but members have continued to carry out bombings and other attacks in Iraq.