In Colonial times the Spanish Empire diverted significant resources to fortify the Chilean coast as consequence of Dutch and English raids.The Spanish attempts to block the entrance of foreign ships to the eastern Pacific proved fruitless due to the failure to settle the Strait of Magellan and the discovery of the Drake Passage. As result of this the Spanish settlement at Chiloé Archipelago became a centre from where the west coast of Patagonia was protected from foreign powers. In face of the international wars that involved the Spanish Empire in the second half of the 18th century the Crown was unable to directly protect peripheral colonies like Chile leading to local government and militias assuming the increased responsibilities.