While Taiwan was still under Japanese rule, the Republic of China was founded on the mainland on 1 January 1912, following the Xinhai Revolution, which began with the Wuchang uprising on 10 October 1911, replacing the Qing dynasty and ending over two thousand years of imperial rule in China. From its founding until 1949 it was based in mainland China. Central authority waxed and waned in response to warlordism (1915–28), Japanese invasion (1937–45), and the Chinese Civil War (1927–50), with central authority strongest during the Nanjing decade (1927–37), when most of China came under the control of the Kuomintang (KMT) under an authoritarian one-party state.