The Chinese also began financing the Khmer Rouge as a counterweight to North Vietnam at this time. China "armed and trained" the Khmer Rouge during the civil war and continued to aid them for years afterward. The Khmer Rouge launched ferocious raids into Vietnam in 1975–1978. When Vietnam responded with an invasion that toppled the Khmer Rouge, China launched a brief, punitive invasion of Vietnam in 1979.