The Cambodian–Vietnamese War was an armed conflict from 1978 to 1989 between Democratic Kampuchea and the Socialist Republic of Vietnam, and their respective allies. It began in December 1978, with a Vietnamese invasion of Cambodia which toppled the Khmer Rouge regime and ended in 1989 with the withdrawal of Vietnamese forces from Cambodia. This Cold War conflict was part of the Third Indochina War and Sino-Soviet split with the Soviet Union supporting Vietnam and China supporting Kampuchea.
Despite both being communist, the alliance between the Communist Party of Vietnam and the Khmer Rouge broke down after both defeated Vietnamese and Cambodian anti-communist regimes respectively in the Second Indochina War. As a result, the war was preceded by years of conflict between Vietnam and the Khmer Rouge, led by Pol Pot, when the Khmer Rouge-ruled Democratic Kampuchea repeatedly invaded Vietnam, including massacres by the Khmer Rouge, notably the Ba Chúc massacre of over 3,000 Vietnamese civilians in April 1978. On 21 December 1978, the Vietnamese launched a limited offensive towards the town of Kratie. On 23 December 1978, 10 out of 19 divisions of the Khmer Rouge's Kampuchea Revolutionary Army opened fire along the border with Vietnam with the goal of invading the southwestern border provinces of Đồng Tháp, An Giang and Kiên Giang. On 25 December 1978, Vietnam supported Cambodian dissidents in exile and launched a full-scale invasion of Kampuchea, occupying the country in two weeks, capturing the capital Phnom Penh, and removing the Khmer Rouge government of the Communist Party of Kampuchea from power. In doing so, Vietnam put an ultimate stop to the Cambodian genocide which had killed between 1.2 and 2.8 million people or between 13 and 30 percent of the country's population since 1975. However, the Khmer Rouge regime maintained its membership in the United Nations and the war isolated Vietnam from the international community except the Eastern Bloc. The Vietnamese occupation caused discontent among Cambodians.
After the Cambodian capital was captured by the Vietnamese, another communist state was established to replace the old regime while the Khmer Rouge was forced to retreat into the jungle near the border with Thailand where the Khmer Rouge alongside the Khmer People's National Liberation Front, led by Son Sann, and FUNCINPEC, led by former king Norodom Sihanouk, continued to fight the Vietnamese army and the pro-Vietnamese Cambodian government. In 1982, they formed the Coalition Government of Democratic Kampuchea. Vietnam's goal of defeating the Khmer Rouge remnants could not be achieved while domestic difficulties forced Vietnam to gradually withdraw its troops. The Vietnamese army completely withdrew in September 1989, and in 1991 the Paris Peace Agreements were signed to open the process of reconciliation between Cambodia's factions, leading to a UN-led transition and the restoration of multi-party rule and a constitutional monarchy in the Kingdom of Cambodia in September 1993.
"Khmer Rouge" is the name that was popularly given to members of the Communist Party of Kampuchea (CPK) established by separating from the Vietnamese dominated-Indochinese Communist Party (predecessor of the Communist Party of Vietnam). In 1951, Cambodian and Vietnamese communists fought France and its respective associated states, with the Cambodian communists leading the Khmer Issarak and the Vietnamese communists leading the Viet Minh. However, despite both winning and Vietnamese communists gaining North Vietnam north of the 17th parallel, with the Geneva Accords in July 1954, both failed to take control of their respective countries and Cambodian communists were not even allowed to take power anywhere by an agreement that the Vietnamese communists signed on their behalf, which led to the Vietnam War, including the Cambodian Civil War. In the context of the global Cold War, during the Vietnam War, Vietnamese and Cambodian communists again had formed an alliance to fight anti-communist regimes in their respective countries: the Republic of Vietnam (South Vietnam) and the Khmer Republic. Since its founding until 1975, the Khmer Rouge officially maintained good relations with the Communist Party of Vietnam. However, the Khmer Rouge led by Pol Pot also feared that the Vietnamese communists were planning to form an Indochinese federation, which would be dominated by Vietnam. Hanoi support for the Khmer Rouge diminished in 1973. The Khmer Rouge were also harboring irredentist sentiments about the Mekong Delta region. Both eventually took power over their respective countries in April 1975 with Vietnam being officially unified the following year. To pre-empt any attempt by the Vietnamese to dominate them, the Khmer Rouge leadership began, as the Lon Nol government capitulated in 1975, to purge Vietnamese-trained personnel within their own ranks. Then, in May 1975, the Khmer Rouge regime (later known as Democratic Kampuchea) began attacking southern Vietnam, beginning with an attack on the island of Phú Quốc (known as Koh Tral to the Cambodians).
In spite of the fighting, the leaders of reunified Vietnam and Democratic Kampuchea made several public diplomatic exchanges throughout 1976 to highlight the supposedly strong relations between them. However, behind the scenes, Kampuchean leaders continued to fear what they perceived as Vietnamese expansionism. Therefore, on 30 April 1977, they launched another major military attack on Vietnam. Shocked by the Kampuchean assault, Vietnam launched a retaliatory strike at the end of 1977 in an attempt to force the Kampuchean government to negotiate. The Vietnamese military withdrew in January 1978, even though its political objectives had not been achieved; the Khmer Rouge remained unwilling to negotiate seriously.
Small-scale fighting continued between the two countries throughout 1978, as China tried to mediate peace talks between the two sides. However, the two governments could not reach a compromise. By the end of 1978, Vietnamese leaders decided to remove the Khmer Rouge-dominated government of Democratic Kampuchea, perceiving it as being pro-Chinese and hostile towards Vietnam. On 25 December 1978, 150,000 Vietnamese troops invaded Democratic Kampuchea and overran the Kampuchean Revolutionary Army in just two weeks, thereby ending Pol Pot's government, which had been responsible for the deaths of almost a quarter of all Cambodians between 1975 and December 1978 during the Cambodian genocide. Vietnamese military intervention, and the occupying forces' subsequent facilitation of international food aid to mitigate the massive famine, ended the genocide.
On 8 January 1979 the pro-Vietnamese People's Republic of Kampuchea (PRK) was established in Phnom Penh, marking the beginning of a ten-year Vietnamese occupation. During that period, the Khmer Rouge's Democratic Kampuchea continued to be recognised by the United Nations as the legitimate government of Kampuchea, as several armed resistance groups were formed to fight the Vietnamese occupation. Throughout the conflict, these groups received training in Thailand from the British Army's Special Air Service. Behind the scenes, Prime Minister Hun Sen of the PRK government approached factions of the Coalition Government of Democratic Kampuchea (CGDK) to begin peace talks. Under diplomatic and economic pressure from the international community, the Vietnamese government implemented a series of economic and foreign policy reforms, and withdrew from Kampuchea in September 1989.
At the Third Jakarta Informal Meeting in 1990, under the Australian-sponsored Cambodian Peace Plan, representatives of the CGDK and the PRK agreed to a power-sharing arrangement by forming a unity government known as the Supreme National Council (SNC). The SNC's role was to represent Cambodian sovereignty on the international stage, while the United Nations Transitional Authority in Cambodia (UNTAC) was tasked with supervising the country's domestic policies until a Cambodian government was elected by the people. Cambodia's pathway to peace proved to be difficult, as Khmer Rouge leaders decided not to participate in the general elections, but instead chose to disrupt the electoral process by launching military attacks on UN peacekeepers and killing ethnic Vietnamese migrants. In May 1993, Sihanouk's FUNCINPEC movement defeated the Cambodian People's Party (CPP), formerly the Kampuchean People's Revolutionary Party (KPRP), to win the general elections. However, the CPP leadership refused to accept defeat, and announced that the eastern provinces of Cambodia, where most of the CPP's votes were drawn from, would secede from Cambodia. To avoid such an outcome, Norodom Ranariddh, the leader of FUNCINPEC, agreed to form a coalition government with the CPP. Shortly afterward, the constitutional monarchy was restored and the Khmer Rouge was outlawed by the newly formed Cambodian government.