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 culture of the Dutch East Indies attracted European intellectuals, scientists and researchers. Some notable scientists that conducted most of their important research in the East Indies archipelago are Teijsmann, Junghuhn, Eijkman, Dubois and Wallace. Many important art, culture and science institutions were established in Dutch East Indies. For example, the "Bataviaasch Genootschap van Kunsten en Wetenschappen", (Royal Batavian Society of Arts and Sciences), the predecessor of the National Museum of Indonesia, was established in 1778 with the aim to promote research and publish findings in the field of arts and sciences, especially history, archaeology, ethnography and physics. The Bogor Botanical