On the morning of Thursday, July 25, 1510, St. James's Day, a Spanish fleet commanded by Navarro arrived in front of Tripoli. Approximately 6,000 marines came from Spanish ships, half of whom were employed in the siege of the city, while the others stayed in the camp to prevent an Ottoman attack from the hinterland. With the effective use of naval artillery, the Spanish quickly captured the maghreb city.