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 profit from the Dutch East Indies made the Netherlands one of the world's most significant colonial powers. The Koninklijke Paketvaart-Maatschappij shipping line supported the unification of the colonial economy and brought inter-island shipping through to Batavia, rather than through Singapore, thus focussing more economic activity on Java. The worldwide recession of the late 1880s and early 1890s saw the commodity prices on which the colony depended collapse. Journalists and civil servants observed that the majority of the Indies population were no better off than under the previous regulated Cultivation System economy and tens of thousands starved. Commodity prices recovered