Under Turkish rule the city was for nearly four centuries the residence of the beylerbey or governor-general of the whole Balkan Peninsula except Bosnia and the Morea.
Sali Reis, also by birth a Christian of Asia Minor, was likewise successful as a corsair; he distinguished himself especially at the capture of Tunis, and succeeded Hassan Barbarossa as beylerbey of Algiers.
All through the preceding year Hassan " Tilli," beylerbey of Bosnia, had raided in Croatia, taking border fortresses and driving off the inhabitants into slavery.
He was named beylerbey by the sultan, and with him began the establishment of Turkish rule in northern Africa.
During the remainder of his life - till 1547 - Barbarossa, though still beylerbey of northern Africa, was mainly engaged as capitan pasha in co-operating with the armies of the sultan Suleiman in the east.