Bey Hassan wasn't resigned to the loss of his beloved city.[19] Regretting the cowardice he had shown by abandoning the city, he tried many times to retrieve it, by attacking it over the following months.[19] At the end of August he closed in on Oran with more than 10,000 troops, but they were defeated by the Spanish, causing them more than 2,000 casualties.[19] The city was to remain under Spanish control till 1792.[20]