Algiers from this time became the chief seat of the Barbary pirates. In October 1541 in the Algiers expedition, the King of Spain and Holy Roman Emperor Charles V sought to capture the city, but a storm destroyed a great number of his ships, and his army of some 30,000, chiefly made up of Spaniards, was defeated by the Algerians under their Pasha, Hassan.