On the same day, in the evening, the Spanish arrived at Mostaganem's outskirts and bombarded the city with 100 cannon shots.
Seeing the gunpowder was running out, he dispatched to Oran to provide more, allowing the garrison to receive more reinforcements, bringing with them a large number of native Algerians.
The attack caused confusion in their ranks, and by nightfall, the Spanish officers suggested retreating by sea, but the count refused.
[3][4] On the evening of the next day, the Ottoman and the Algerians attacked the Spanish; however, thanks to the composure of the count, his son, and Luis de Rueda, they were able to repel the attack and force them to retreat; however, the Spanish did not have enough cavalry to chase them, had they had enough cavalry, they would've been able to capture Mostaganem.
The Spanish evacuated their wounded and sick on ships, and the count returned to Oran three days later.