At the time of the Xinhai Revolution, the native population of the city was estimated at 300,000 and the foreign settlement at 280. After the establishment of the Republic of China, the area around Xiamen was renamed Siming County. Xiamen's trade during the period was largely conducted through Taiwan, which had been seized by Japan during the First Sino-Japanese War. The Japanese subsequently claimed Fujian as their sphere of influence during the colonial squabbling over China. Japan occupied Xiamen Island from May 1938 to September 1945 during World War II. During the Japanese occupation, the city provided some shipments of rice to the Portuguese Colony of Macau. In the late phases of the Chinese Civil War that followed, the Communists captured Xiamen and Gulangyu in October 1949 but failed to capture Kinmen. The same year, Xiamen became a provincially administered city ().