Rubuta ci gaba don wannan sakin layi - Daga baya, Charles III na Spain zai nemi magance matsalar tare da Regency na Algiers, ta hanyar sojoji da hanyoyin diflomasiyya. A shekara ta 1775, ya aika da wata runduna zuwa Algiers
wanda ya gaza. A cikin 1778 tattaunawa ta gaza kuma a cikin 1782, Algiers bai bi yarjejeniyar tsakanin Spain da Daular Ottoman ba. Da yake fuskantar kin amincewa, Spain ta aika da wani sabon horo a kan Algiers a 1783 sannan a 1784. A cikin 1785, lokacin da ake shirya wani balaguron Mutanen Espanya, Algiers ya yanke shawarar yarda da gwamnatin Spain, ya sanya hannu kan wata yarjejeniya a cikin 1786 wanda ya kawar da corsairs.