The Spaniards order Abu Zayan, whom they…
1517 CE
The Spaniards order Abu Zayan, whom they had appointed as the new ruler of Tlemcen and Oran, to attack Oruç by land, but Oruç learns of the plan and preemptively strikes against Tlemcen, capturing the city in 1517 and executing Abu Zayan.
The only survivor of Abu Zayan's dynasty is Sheikh Buhammud, who escapes to Oran and calls for Spain's assistance.
Oruç crowns himself king of Tlemcen.
This victory puts Oruç in control of the back country behind the Spanish base of Oran, which greatly threatens their usual supply routes.
Oruç has established the Ottoman presence in North Africa, which will last four centuries, de facto until the loss of Algeria to France in 1830, of Tunisia to France in 1881, of Libya to Italy in 1912 and de jure until the official loss of Egypt and Sudan to the United Kingdom in 1914, after the Ottoman Empire joins the First World War on the side of the Central Powers.