In 1537 the Ottoman admiral Hayreddin Barbarossa, Pasha of Algiers, had captured the Venetian stronghold of Corfu and ravaged the coasts of Calabria. In the face of this threat Pope Paul succeeded in February 1538 in organizing the Holy League which consisted of the Papal States, the Republic of Venice, the Maltese Knights, the Spains and the Spanish ruled Naples and Sicily.
To confront Barbarossa and his roughly 120 galleys and fustas, the League assembled a fleet of 302 ships (162 galleys and 140 sailing ships) in September 1538 near Corfu. Its supreme commander was the Genoese admiral Andrea Doria, who was then in the service of Emperor Charles V.
The two fleets met on 28 September 1538 in the Battle of Preveza, and Barbarossa decisively defeated the numerically superior Christian alliance. Doria's leadership in the battle was less than vigorous and is widely believed to have been a major contributing cause to the League's defeat. His hesitation to bring his own ships into full action (he personally owned a number of them) and to sacrifice them for the good of Venice, the traditional rival of his home town of Genoa, are generally considered to explain his actions at Preveza.