The emperor finally permitted Cortés to join him and his fleet commanded by Andrea Doria at the great expedition against Algiers in the Barbary Coast in 1541, which was then part of the Ottoman Empire. During this campaign, Cortés was almost drowned in a storm that hit his fleet while he was pursuing the Pasha of Algiers.
