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
Dutch East Indies the declaration of war with Japan, over 100,000 natives volunteered. The KNIL hastily and inadequately attempted to transform them into a modern military force able to protect the Dutch East Indies from Imperial Japanese invasion. On the eve of the Japanese invasion in December 1941, Dutch regular troops in the East Indies comprised about 1,000 officers and 34,000 men, of whom 28,000 were indigenous. During the Dutch East Indies campaign of 1941–42 the KNIL and the Allied forces were quickly defeated. All European soldiers, which in practice included all able bodied Indo-European males were interned by the Japanese as POW's.