By 1677 the Pirate Michel de Grandmont sacked Trujillo, this attack led Governor Jorge de Madureira to change the capital of the province to the city of Maracaibo in 1678, to organize a more effective defense of the territory.