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
East Indies theatre of the French Revolutionary Wars squadron. A Portuguese mercantile presence existed in the Indian port of Goa, which was a source of concern to the British as it represented a weak point in the defenses of British India. Portugal also controlled the Chinese port of Macau and a number of trading posts on the East African coast in Portuguese Mozambique. Other European nations, including Denmark and Sweden traded in the East Indies, as increasingly did American merchant ships. The East Indies were very important to the British war effort due to their pivotal position in maintaining British revenue through trade. The EIC controlled the shipment