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
Spanish West Indies closely tied to the Spanish Caribbean. During the period of Spanish settlement and colonization of the New World, the Spanish West Indies referred to those settlements in islands of the Caribbean Sea under political administration of Spain, as in the phrase "a 1765 cedula authorized seven sea ports, in addition to the port of San Juan, to trade with the Spanish Caribbean." Until the early 19th century these territories were part of the Viceroyalty of New Spain. In a modern sense, the Caribbean islands of Venezuela and those of Colombia could be included in the Hispanophone Caribbean as well, due