Working together, the Nationalists and the Communists expelled the Japanese from China. But the Communists, whom Chiang had previously almost destroyed, took advantage of this period of collaboration to regain strength. Once the Japanese had left, they turned on the Nationalists, who, in 1949, were forced to evacuate mainland China for the island of Formosa, now Taiwan.