Bahia, as San Salvador was known in the 17th century, was attacked and taken from the Spaniards in 1624. The admiral of the Dutch fleet that left on 23 December 1623 and took it was Jacob Willekens. Willekens was active in the East Indies Company (Vereenigde Oost-Indische Compagnie) prior to this. The Vice Admiral was Piet Heyn. The leader of the Infantry was nobleman Johan van Dorth.
The capture of Bahia was the first big success of the Dutch West Indies Company (WIC). The privateering business is one of the three areas in which the WIC was mainly active.The fleet began their attack on the 9th of May after having sailed closer to the port. The city of Bahia was surrounded by a wall and defended by three castles and a fortress. The city was heavily bombarded the entire day. The bombardment was not very effective though, because not much damage was done. After having captured the ships in the port and storming the walls Bahia was taken. Not much resistance was met, however, because most of the people had already left the city. Only the Governor-General and a few men and slaves were still there. After the capture of Bahia by the Dutchmen, a part of the people of Bahia returned, but the larger part were able to organize a very effective guerilla-war under the Bishop against the Dutchmen. They were so effective that the Dutchmen were forced to remain in the city.
Three weeks after its capture a ship, called the Vos (= fox) was sent to the Dutch Republic to announce the success. On July 28th 1624 the Admiral, Jacob Willekens, left with a large part of the fleet. They carried a cargoe of Textile, Tobacco, and 3900 chests of sugar. The Vice-Admiral Piet Hein left on the 5th of August 1624 with seven ships for Loando in Angola (on the West-coast of Africa).
Bahia did not stay long in the possession of the Dutch Republic. Because the ship the Vos had left as late as it did, the Spaniards were aware of the capture of Bahia a whole month earlier than the Dutchmen. A relief force was put together and sent as quickly as possible. The WIC was well aware of the Spanish relieve force, but due to bad weather a Dutch fleet could not be sent there to aid Bahia. It was also believed that the Dutchmen would be able to hold out until help could be sent. They were wrong. The Armada, a fleet of 52 ships under the command of Don Fadrique de Toledo, arrived on March 30th of 1625 in the area of Bahia. After a siege of a whole month the Dutchmen were forced to surrender the city on the 30th of April. The Dutch occupation force and their ships were allowed to leave Bahia.
Piet Heyn arrived in that same year, after a rather unsuccesful attack on a Portuguese city in Angola, Africa, only to discover that Bahia was recaptured. He decided that the odds were against his retaking the city and sailed for home. Eventually a Dutch fleet of 34 ships under the command of Boudewijn Hendriksz. was sent to help Bahia. The fleet left the Dutch Republic in March of 1625. At that time the Dutchmen were still under the impression that Bahia was in Dutch hands. The fleet arrived at the city only a few weeks after Piet Heyn. Boudewijn Hendriksz. decided also that the odds were against him retaking Bahia. He sent part of his fleet to West Africa and took 18 ships with him on privateering in the Caribbean. The ship the Vos (Fox) was sent home to inform the Republic of the loss of Bahia (the ship managed to take three enemy ships on the way home though).