information:extraction
Rulers of Algiers

In 1516, the three brothers succeeded in capturing Jijel and Algiers from the Spaniards and eventually assumed control over the city and surrounding region, forcing the previous ruler, Abu Hamo Musa III of the Beni Ziyad dynasty, to flee.

The Spaniards of Algiers sought refuge on the island of Peñón and asked Charles V, King of Spain and Holy Roman Emperor to intervene, but the Spanish fleet failed to expel the brothers from Algiers.

For Oruç, the best protection against Spain was to join the Ottoman Empire, his homeland and Spain's main rival. For this, he had to relinquish his title of Sultan of Algiers to the Ottomans. He did this in 1517 and offered Algiers to the Ottoman Sultan Selim I. The Sultan accepted Algiers as an Ottoman sanjak ("province"), appointed Oruç Governor of Algiers and Chief Sea Governor of the Western Mediterranean, and promised to support him with Janissaries, galleys and cannon.