After the fall of the Qing dynasty in 1911, nationalist and communist movements struggled for power in China. The Kuomintang (Nationalist Party) overthrew the Qing and established a new republic led by Sun Yixian, but the government was unstable. In the 1920s, the Communist Party of China was formed under Mao Zedong and began gaining support from peasants dissatisfied with the nationalist government's corruption. A civil war then broke out between the nationalists led by Jiang Jieshi and the communists led by Mao, which was still raging in the late 1930s when Japan invaded China and suspended the civil war as the two Chinese factions allied against the common enemy.