In 1821 the New Spanish Viceroyalty collapsed following the Mexican War of Independence, which resulted in the First Mexican Empire.
In 1574 the Captaincy General of the Philippines was created as a dependency of the Viceroyalty of New Spain.