A member of the Iraqi rapid response forces walks past a wall painted with the black flag commonly used by Islamic State militants, at a hospital damaged by clashes during a battle between Iraqi forces and Islamic State militants in Mosul, Iraq. REUT

An Iraqi court has sentenced 16 Turkish women to death by hanging for joining 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.

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

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.

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 in December over Islamic State, 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.