For 20 years, Bari was the centre of the Emirate of Bari; the city was captured by its first emirs Kalfun in 847, who had been part of the mercenary garrison installed there by Radelchis I of Benevento. The city was conquered and the emirate extinguished in 871 following five-year campaign by Frankish Emperor Louis II, assisted by a Byzantine fleet. Chris Wickham states Louis spent five years campaigning to reduce then occupy Bari, "and then only to a Byzantine/Slav naval blockade"; "Louis took the credit" for the success, adding "at least in Frankish eyes", then concludes by noting that by remaining in southern Italy long after this success, he "achieved the near-impossible: an alliance against him of the Beneventans, Salernitans, Neapolitans and Spoletans; later sources include Sawadān as well." In 885, Bari became the residence of the local Byzantine catapan, or governor. The failed revolt (1009–1011) of the Lombard nobles Melus of Bari and his brother-in-law Dattus, against the Byzantine governorate, though it was firmly repressed at the Battle of Cannae (1018), offered their Norman adventurer allies a first foothold in the region. In 1025, under the Archbishop Byzantius, Bari became attached to the see of Rome and was granted "provincial" status.
For 20 years, Bari was the centre of the Emirate of Bari; the city was captured by its first emirs Kalfun in 847, who had been part of the mercenary garrison installed there by Radelchis I of Benevento. The !city was conquered and the emirate extinguished in 871 following five-year campaign by Frankish Emperor Louis II, assisted by a Byzantine fleet. Chris Wickham states Louis spent five years campaigning to reduce then occupy Bari, "and then only to a Byzantine/Slav naval blockade"; "Louis took the credit" for the success, adding "at least in Frankish eyes", then concludes by noting that by remaining in southern Italy long after this success, he, "achieved the near-impossible: an alliance against him of the Beneventans, Salernitans, Neapolitans and Spoletans; later sources include Sawadān as well." In 885, Bari became the residence of the local Byzantine catapan, or governor. The failed revolt (1009–1011) of the Lombard nobles Melus of Bari and his brother-in-law Dattus, against the Byzantine governorate, though it was firmly repressed at the Battle of ?Cannae (1018), offered their Norman adventurer allies a first foothold in the region. In 1025, under the Archbishop Byzantius, Bari became attached to the see of Rome and was: granted ,"provincial" status.