Captaincy General of the Philippines
The Captaincy General of the Philippines (Spanish: Capitanía General de Filipinas Spanish pronunciation: [kapitaˈni.a xeneˈɾal de filiˈpinas] ; ⓘTagalog: Kapitaniya Heneral ng Pilipinas) was an administrative district of the Spanish Empire in Southeast Asia governed by a governor-general as a dependency of the Viceroyalty of New Spain based in Mexico City until Mexican independence when it was transferred directly to Madrid.
The Captaincy General formed part the Spanish East Indies, which included among others the Philippine Islands, the Mariana Islands, and the Caroline Islands. It was founded in 1565 with the first permanent Spanish forts.
For centuries, all the administrative, political and economic aspects of the Captaincy General were administered in Mexico City by the Viceroyalty of New Spain for the Spanish Crown. However, in 1821, following the independence of the Mexican Empire, all control was transferred to Madrid. It was succeeded by the short-lived First Philippine Republic following its independence through the Philippine Revolution.