AHC survivng Barbary state

Alright here is the challenge with a POD no earlier than the 16th century find a way for at leas one barbary state to survive.... What would the ramifications be and how would this affect history....



Btw I honestly believe out of all the African powers the Barbary states had the most potential, next to the ottomans they were the closest to modernization, so I am wondering what if the barbarystates lasted to at least otl 2000 is it plausable??? Plus I believe they had te best chance to become a first world country.
 
Wasn't Tunis one of said Barbary States? I'm sure Tunis as well as Algiers could've survived outright colonisation, maybe they'll get into the same situation as Egypt?
 
Top