As soon as Chiang Mai was restored, however, King Bodawpaya of Burma sent forces of 55,000 men to attack Chiang Mai in 1797. Kawila again held the city out until Prince Sura Singhanat, Prince Thepharirak and Prince Anouvong of Vientiane brought the allied forces to repel the Burmese. In 1800, Kawila named his new Chiang Mai city as Rattana Tingsa Aphinawaburi (, 'Great New city as jeweled abode of Indra'). In 1802, Bodawpaya installed a Chinese man named Chom Hong to be the ruler of all Lanna at Mong Hsat in direct challenge to Kawila. Kawila sent his younger brother Thammalangka to capture Mong Hsat and Chom Hong. Thammalangka then proceeded to capture Kengtung or Chiang Tung, which had been under Burmese suzerainty, in 1802. These advances provoked Bodawpaya to send invading forces to Chiang Mai again in 1802. Siamese relief forces from the south managed to repel the Burmese from Chiang Mai for second time.
