 Oran was also hit by an earthquake in 1791, when most of the city was damaged and the Spanish who had ruled from 1509 evacuated.The French then occupied the city in 1831.Santacruz was the highest of the three forts erected by the Spanish above the town of Oran which was a dominantly Muslim town with buildings of mostly Moorish architecture.