the Treaty of Paris of 1898 that ended the war with Spain, the United States gained the Philippines and other territories; in refusing to recognise the nascent republic, America effectively reversed her position of 1856. This led directly to the Philippine–American War, in which the First Republic was defeated; wars followed with the Republic of Zamboanga, the Republic of Negros and the Republic of Katagalugan, all of which were also defeated. Colonial rule had had a profound effect on Southeast Asia. While the colonial powers profited much from the region's vast resources and large market, colonial rule did develop the region to a varying extent. Commercial agriculture, mining and an export based economy developed rapidly during this period. The introduction Christianity bought by the colonist also have profound effect in the societal change. Increased labour demand resulted in mass immigration, especially from British India and China, which brought about massive demographic change. The institutions for a modern nation state like a state bureaucracy, courts of law, print media and to a smaller extent, modern education, sowed the seeds of the fledgling nationalist movements in the colonial territories. In the inter-war years, these nationalist movements grew and often clashed with the colonial authorities when they demanded self-determination. 20th-century Southeast Asia Japanese invasion and occupations In September 1940, following the Fall of France and pursuant to the Pacific war goals of Imperial Japan, the Japanese Imperial Army invaded Vichy French Indochina, which ended in the abortive Japanese coup de main in French Indochina of 9 March 1945. On 5 January 1941, Thailand launched the Franco-Thai War, ended on 9 May 1941 by a Japanese-imposed treaty signed in Tokyo. On 7/8 December, Japan's entry into World War II began with the invasion of Thailand, the only invaded country to maintain nominal independence, due to her political and military alliance with the Japanese—on 10 May 1942, her northwestern Payap Army invaded Burma during the Burma Campaign. From 1941 until war's end, Japanese occupied Cambodia, Malaya and the Philippines, which ended in independence movements. Japanese occupation of the Philippines led to the forming of the Second Philippine Republic, formally dissolved in Tokyo on 17 August 1945. Also on 17 August, a proclamation of Indonesian Independence was read at the conclusion of Japanese occupation of the Dutch East Indies since March 1942. Post-war decolonisation With the rejuvenated nationalist movements in wait, the Europeans returned to a