From about 1518 till the death of Uluch Ali in 1587, Algiers was the main seat of government of the beylerbeys of northern Africa, who ruled over Tripoli, Tunisia and Algeria.
It may be pointed out that during the first period (1518-1587) the beylerbeys were admirals of the sultan, commanding great.
Jurien de la Graviere, all published in Paris, Doria et Barberousse (1886), Les Corsaires barbaresques (1887), Les Chevaliers de Malte (1887), and La Guerre de Chypre (1888), deal with the epoch of the beylerbeys and the regular wars.
The beylerbeys were replaced in 1587 by pashas sent triennially by the Porte.
The administration of kazas, or cantons, was usually entrusted to the cadis and the holders of the more important fiefs; the sanjaks, or departments, were ruled by alai beys or mir-i-livas (colonels or brigadiers), pashas with one horsetail; the vilayets, or provinces, by beylerbeys or mir-i-mirans (lord of lords), pashas with two horse-tails; these were all originally military officers, who, in addition to their administrative functions, were charged with the duty of mustering and commanding the feudal levies in war time.