Spanish East Indies exception of a short period at the end of the 18th century). In 1821 the New Spanish Viceroyalty collapsed following the Mexican War of Independence, which resulted in the First Mexican Empire. All control of the Spanish East Indies government was then transferred to Madrid, until the United States annexed most Spanish territories in the Asia-Pacific region after the Spanish–American War of 1898. In 1574 the Captaincy General of the Philippines was created as a dependency of the Viceroyalty of New Spain. The Real Audiencia of Manila was created on and established in 1584 as the highest tribunal of the
Batavia, Dutch East Indies new port. In 1885, the port of Tanjung Priok was finally completed, replacing the centuries-old Sunda Kelapa, which was deemed as inadequate for a long time. This would then significantly increase commercial and tourism in Batavia and the Dutch East Indies in general. The Dutch cultuurstelsel, or cultivation system, was a Dutch government policy in the mid-nineteenth century which required a portion of agricultural production to be devoted to export crops. Indonesian historians refer to it as tanam paksa, enforcement planting. The abolition of the cultuurstelsel in 1870 led to the rapid development of private enterprise in the Dutch Indies.