Among Ribera's tasks in his second term was the defense of the Chilean coast from attacks by Dutch corsairs, beginning in 1613. One such expedition was a fleet of six ships sent by the Dutch East India Company to the Moluccas, via the Strait of Magellan. This fleet was under the command of Admiral Joris van Spilbergen. As soon as the governor was informed of the approach of Spilbergen, he ordered the fortification of Valparaíso and Concepción. Spilbergen did not attack the Chilean coast, but sailed past it to the north.