In 1945, the Republic of China won the Second Sino-Japanese War. The Allied Powers agreed to divide the territory of the Japanese Empire, and Taiwan would be returned to Chinese control. The Chinese civil war occurred at this time, and in 1949 the Guomindang lost and escaped to Taiwan. Taiwan was ruled by this one party until democratic reforms began in the 1980s.