The Regency of Algiers was an early modern semi-independent Ottoman province and nominal vassal state on the Barbary Coast of North Africa from 1516 to 1830. Founded by the privateer brothers Aruj and Hayreddin Reis (also known as the Barbarossa brothers), the Regency succeeded the Kingdom of Tlemcen as a formidable base that waged maritime holy war (Jihad) on European Christian powers. It was ruled by elected regents under a stratocracy led by Janissaries and corsairs. Despite its pirate reputation in Europe, Algiers maintained long-standing diplomatic ties with European states and was a recognized Mediterranean power.
The Regency emerged in the 16th-century OttomanâHabsburg wars. As self-proclaimed ghazis gaining popular support and legitimacy from the religious leaders at the expense of hostile local emirs, the Barbarossa brothers and their successors carved a unique corsair state that drew revenue and political power from its naval warfare against Habsburg Spain. In the 17th century, when the wars between Spain and the Ottoman Empire, Kingdom of France, Kingdom of England and Dutch Republic ended, Barbary corsairs started capturing merchant ships and their crews and goods from these states. When the Ottomans could not prevent these attacks, European powers negotiated directly with Algiers and also took military action against it. This policy would emancipate Algiers from the Ottomans.