The Chinese Civil War began in 1927 after the Nationalist Party (KMT) turned on their former Communist Party allies and executed them in Shanghai. This led to a split between the right and left KMT factions, with competing governments based in Nanjing, Wuhan, and Beijing. The war continued during the Japanese invasion in the 1930s, as the KMT and CPC refused to ally against Japan. Ultimately, the CPC defeated the KMT in 1949 due to corruption within the KMT and the CPC's promises of land reform that made them popular with peasants.