Saqaliba (Arabic: صقالبة, romanized: ṣaqāliba, singular Arabic: صقلبي, romanized: ṣaqlabī) was a term used in medieval Arabic sources, initially to refer to Slavs, but it also came to be used as a designation for European slaves in Muslim countries in the 10th and 11th centuries. In the Arab world, the Saqaliba served as servants, harem concubines, eunuchs, craftsmen, mercenaries, slave soldiers, and as Caliph's guards. In the Iberian Peninsula, their military role may be compared with that of mamluks in the Ottoman Empire. Many rose to prominent positions in the caliphates of the Maghreb, and some became rulers of taifas (small independent states) in Levante at the beginning of the 11th century (known as the "Amirids").