During the time of warlords, Sun Yat-sen kept the idea of a united Chinese republic alive. His goal was to establish a rival government in Guangzhou, southern China, and go from there to fight against the warlords in the North and their Beiyang government. Upon his return from exile in 1917, Sun revived his banned nationalist party, the Kuomintang, but this time he gave it the new name, the Kuomintang of China. His plan was that after defeating the warlords the party would guide China until the country would be ready to move to democracy.
The rival government led by Sun, however, was at a disadvantage against the warlords from a military point of view. Despite his requests for aid from the West, badly needed financial and arms support never arrived in the country. In the 1920s the Kuomintang eventually received help from the Russian Bolsheviks. Material aid from Russia was good enough for Sun, who had previously shown flexibility when the question was about the promotion of the republic. He had neither sympathy towards Marxism nor did he see communism as a solution to China's problems. In Sun's view, China was not of the rich and the poor; rather, it was the country of the poor and the poorer. The guidelines of the Kuomintang were based on Sun's "Three Principles of the People": nationalism, democracy and the people's livelihood (socialism).
The Kuomintang gradually became a powerful and disciplined party under Russian guidance. The decisive factor was the Bolshevik's assistance to the Kuomintang in the formation of its own army, the National Revolutionary Army. In order to train the army the Whampoa Military Academy was established near Guangzhou. As its director, Sun appointed his loyal supporter Chiang Kai-shek. Financially the Whampoa Military Academy operated with the support of the Soviet Union. The quality of education was guaranteed by regularly visiting Russian officers. Many of the leaders of both the Kuomintang and the CCP graduated from the academy—the chief commander of the People's Liberation Army, Lin Biao, graduated from Whampoa, as did Zhou Enlai, who later became premier of Communist China.
The First United Front was formed so the KMT and the CCP could join to strengthen China. The initial aim was to help defeat the warlord threat (through the Northern Expedition of 1926–28), but both parties actually had ulterior motives with this alliance. The CCP formed it mainly so it could spread communism within the KMT and its members, while Chiang's aim was to control the Communist Party from the inside. Having said that, he was also the main reason the relationship fell apart, due to his desire to control the Communist Party, ultimately leading to the disintegration of the First United Front. After purging the Communists and Soviet advisors from Whampoa and his Nationalist army during the 1926 "Canton Coup", Chiang went on to kill a large number of Communist forces in mid-1927, an event known as the Shanghai massacre. The massacre occurred about halfway through the Northern Expedition, ultimately ruining the First United Front and resulting in the Chinese Civil War. The Civil War was later postponed when the two sides formed the Second United Front to combat the Japanese in the Second Sino-Japanese War.