In response to Vietnam's 1978 invasion and occupation of Cambodia (which ended the rule of the Chinese-backed Khmer Rouge), the People's Republic of China launched a brief punitive military campaign against Vietnam, lasting from 17 February – 16 March. Chinese forces entered northern Vietnam and captured several cities near the border. On March 6, 1979, China declared that the gate to Hanoi was open and that their punitive mission had been achieved, before withdrawing their troops from Vietnam. Both China and Vietnam claimed victory in the war; as Vietnamese troops remained in Cambodia until 1989, it can be said that China was unsuccessful in their goal of dissuading Vietnam from involvement in Cambodia.