They were willing to cede Oran and Mers el-Kebir if they would be allowed to retain their trading posts, in return for Algiers to stop attacking Spanish vessels.
[1][2] The Algerians were happy with these terms, but the Spanish population was outraged, and forced their government to delay carrying them out.
The death of Charles III of Spain and the breakout of the French Revolution forced the Spanish to forget about Oran.
In early 1792, the Spanish evacuated the town along with their belongings, and in March, the Algerians occupied the city.
[12] The Ottoman sultan sent his praises when the city returned to Muslim control, ending the Spanish occupation of three hundred years.