He fled to the Deylik of Algiers, a country which was De facto independent from the Ottoman Empire, similar to the other countries of the Barbary Coast.
He retreated to the Deylik of Algiers, a country that functioned independently of the Ottoman Empire in practice, much like the other nations on the Barbary Coast.