The African presence in Iraq dates back to the ninth century, when Baghdad was the capital of the prosperous Abbasid Caliphate. It was then that a robust slave trade developed between the East Coast of Africa and the port city of Basra, which would continue in one form or another for close to a millennium. Some African migrants also came to the region as sailors or laborers. Slaves worked in agriculture, as servants in the homes of aristocratic families, and occasionally as soldiers. Many were initially given the arduous task of converting salt marshes into agricultural land through manual labour. The strenuous nature of this work contributed to the outbreak of the Zanj rebellion in Basra in 869, which lasted nearly fifteen years. The rebellion reportedly involved half a million slaves and led to the creation of a self-ruling capital, before it was violently put down by Baghdad.
Slavery formally ended in the 19th century, although blacks apparently continued to be used as domestic servants in wealthy households. Moreover, the legacy of slavery contributed to long-term patterns of marginalization and discrimination against Iraqis of African descent. The community never developed an educated class nor did black Iraqis rise to positions of power in the country, although membership in the Ba’ath party reportedly provided some with access to government jobs during the Saddam Hussein era. Many earned a living as musicians, and were sought after to perform at weddings and other festivities in southern Iraq.
After the fall of Saddam Hussein in 2003, black Iraqis began to organize and develop a political consciousness for the first time. The Free Iraqi Movement, the first political association to defend the rights of black Iraqis, was founded in 2007. Spurred by the election of Barack Obama as President of the United States, many black Iraqis began to advocate for an end to discrimination and a greater role in Iraqi politics. Several members of the movement ran for the 2010 provincial elections in Basra, though none were elected. In 2013, in the aftermath of local council elections, the founder of the Free Iraqi Movement, Jalal Thiyab, was assassinated in central Basra. Reportedly, no official investigation was launched into the investigation and the killer was not brought to justice.