Ancud was made capital of the Chiloé in 1767. In 1784 Chiloé Island was made a direct dependency of the colonial viceroyalty of Peru as a consequence of the Bourbon reforms, while continental Chile was a captaincy-general within the viceroyalty. The change of capital and shift to dependency corresponded to a new strategic view of the Chiloé Archipelago. While initially Chiloé was viewed by Spaniards as a colony rich enough to conquer, it later became a problematic region due to its geographical isolation from mainland Chile and the War of Arauco in the mainland. Chiloé Island was largely exempt from the turmoil that affected the Chilean mainland due to conflicts with Huilliches and Mapuches, but was notably affected in 1712 by a large Huilliche rebellion.