Original: Bari became the capital of a province that extended to modern Basilicata, and was ruled by a catepano (governor), hence the name of Capitanata of the Barese neighborhood.
Simplified: The capital is Bari.