Spanish East Indies exception of a short period at the end of the 18th century). In 1821 the New Spanish Viceroyalty collapsed following the Mexican War of Independence, which resulted in the First Mexican Empire. All control of the Spanish East Indies government was then transferred to Madrid, until the United States annexed most Spanish territories in the Asia-Pacific region after the Spanish–American War of 1898. In 1574 the Captaincy General of the Philippines was created as a dependency of the Viceroyalty of New Spain. The Real Audiencia of Manila was created on and established in 1584 as the highest tribunal of the
West Indies the Caribbean. From the 17th through the 19th century, the European colonial territories of the West Indies were the French West Indies, British West Indies, the Danish West Indies, the Netherlands Antilles (Dutch West Indies), and the Spanish West Indies. In 1916, Denmark sold the Danish West Indies to the United States for US$25 million in gold, per the Treaty of the Danish West Indies. The Danish West Indies became an insular area of the U.S., called the United States Virgin Islands. Between 1958 and 1962, the United Kingdom re-organised all their West Indies island territories (except the British Virgin