The evacuation of Oran by the Spanish and its transfer to Algiers
When the fortress and the city were largely destroyed in the earthquake of 1790, Spain, which could no longer bear the costly garrison it had maintained for three centuries, came to an agreement with the Algiers ocak and handed over Oran and Mers el-Kébir without a war. Thus the last European position on the North African coast was also liquidated. Ottoman Algiers remained master of the whole coast for the thirty-eight years that would pass until the French occupation.