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
Netherlands Indies gulden power in the East, but the unfamiliar coins were rejected in favour of the well-known 8 Real coins produced by Spain and its possessions, which were accepted all over the world. The Spanish coins remained the preferred large silver (trade) coin in the Indies until the 19th century. In 1602, the United East India Company (VOC) was formed from six trading companies in the Netherlands, and granted a trade monopoly over the Indies. In 1619 the Company established its capital at Jacatra, which it called Batavia. It gradually spread its influence over Java, and established control over Sumatra in 1667