Emirate of Bari

The Emirate of Bari was a short-lived Arab state (emirate) ruled by non-Arabs centred on the south Italian city of Bari from 847 to 871. It was the most lasting episode in the history of Islam in peninsular southern Italy.
Bari first became the object of Arab or Berber raids in late 840 or early 841, when it was briefly occupied. According to Al-Baladhuri, Bari was conquered from the Byzantine Empire by Kalfün, a mirwah—perhaps a servant or escaped slave—of the Aghlabid Emir of Africa. Kalfün (Khalfun) was probably of Berber stock, possibly from the Emirate of Sicily originally. The conquest was seen by contemporary Muslims as unimportant, having been carried out by a minor figure without the support of any other Muslim state. Requests were sent, however, by Kalfün's successor, Mufarrag ibn Sallam, to the Abbasid caliph, al-Mutawakkil, in Baghdad, and his provincial governor of Egypt for recognition of the conquest with the title of wali, a governor ruling over a province of the Caliphate, which was granted. Mufarrag expanded Muslim influence and enlarged the territory of the emirate.