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.
East Indies theatre of the French Revolutionary Wars centre at Canton in Qing Dynasty China. This linkage was the principal cause of British interest in the East Indies: the connection to and dominance of a lucrative network of intercontinental trade and exploration. France controlled a number of trading harbours along the Indian coast including Mahé and Chandernagore, all governed from the larger port of Pondicherry. However, the strongest French position in the region was the isolated island of Île de France, later known as Mauritius, with its subordinate bases of Réunion and small settlements on Madagascar in the Seychelles and on Rodrigues. Île de France, centred on the