After the soldiers reached Mae Salong, China and Thailand struck an agreement to transfer the administration of the group to the Thai government. The provincial governor of southern Thailand, Pryath Samanmit, was reassigned as the governor of Chiang Rai, to oversee the KMT division, but upon taking up his position, Samanmit was killed by communist insurgents. Soon afterwards, the KMT division was ordered to assist the Thai government in countering the advancing armies on Thailand's northern borders and the internal threat from the Communist Party of Thailand. Fierce battles were fought in the mountains of Doi Laung, Doi Yaw, Doi Phamon, and Mae Aabb, and the communist uprising was successfully countered. The bloodiest operation was launched on 10 December 1970, a five-year-long campaign that claimed over lives, many from landmines. It was not until 1982 that the soldiers were able to give up their arms and were discharged to settle down to a normal life at Mae Salong. As a reward for their service, the Thai government gave citizenship to most of the KMT soldiers and their families.