The Governorate of Chiloé was political and military subdivision of the Spanish Empire that existed, with a 1784–1789 interregnum, from 1567 to 1826. The Governorate of Chiloé depended on the Captaincy General of Chile until the late 18th century when it was made dependent directly on the Viceroyalty of Peru. The administrative change was done simultaneously as the capital of the archipelago was moved from Castro to Ancud in 1768. The last Royal Governor of Chiloé, Antonio de Quintanilla, depended directly on the central government in Madrid.