 Cebu was the first seat of government, later transferred to Manila.From 1565 to 1821 these territories, together with the Spanish West Indies, were administered through the Viceroyalty of New Spain based in Mexico City.The Captaincy General of the Philippines (; ) was an administrative district of the Spanish Empire.