A few days after, the fleet was obliged, due to contrary winds, to take cover near the Cape Palos, but on the 24 June, after overcoming its difficulties, it continued its journey towards Oran.[15] On 27 June, the fleet arrived at the coasts of Oran, and the Duke of Montemar, ordered the troops to disembark on the Aguadas beach, near Mers el-Kebir, but this could not take place till the next day.[15] At dawn, the troops began to disembarked with barely any resistance.[15] The Ottoman-Algerian troops, who up to that time had remained in defensive positions, began to attack the Spanish troops; however, the firepower of the Spanish ships,[15] in particular the ship of the line Castilla, under the command of Don Juan José Navarro,[16] made a big contribution in covering the landing troops by the use of his naval guns, decimating and forcing the Muslim troops to flee.[16] Before midday, all the infantry had disembarked, and the cavalry followed soon after.[3]