Spanish East Indies together with the Spanish West Indies, were administered through the Viceroyalty of New Spain based in Mexico City. After Mexican independence, they were ruled directly from Madrid. As a result of the Spanish–American War in 1898, the Philippines and Guam were occupied by the United States while about 6,000 of the remaining smaller islands were sold to Germany in the German–Spanish Treaty of 1899. The few remaining islands were ceded to the United States when the Treaty of Washington was ratified in 1901. Spanish contact began on , when a Spanish expedition led by Ferdinand Magellan reached the Mariana Islands.
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.