Spanish Filipino territories, together with the Spanish West Indies, were administered through the Viceroyalty of New Spain based in Mexico City. The Captaincy General of the Philippines (; ) was an administrative district of the Spanish Empire. The Captaincy General encompassed the Spanish East Indies which included the modern country of the Philippines and various Pacific Island possessions, such as the Caroline Islands and Guam. It was founded in 1565 with the first permanent Spanish settlements. For centuries all the political and economic aspects of the Captaincy were administered in Mexico by the Viceroyalty of New Spain, while the administrative issues had
French and British interregnum in the Dutch East Indies one of the Napoleonic Wars was fought in Java. This period, which lasted for almost a decade, witnessed a tremendous change in Java, as vigorous infrastructure and defence projects took place, followed by battles, reformation and major changes of administration in the colony. In 1800, Dutch East India Company ( (VOC)) was declared bankrupt and nationalised by the Dutch government. As a result, its assets, which included seaports, storehouses, fortifications, settlements, lands and plantations in the East Indies were nationalised as a Dutch colony, the Dutch East Indies. Based in Batavia (today Jakarta), the Dutch ruled most of Java (with