Lanna had a series of internal succession disputes throughout the 1540s. The weakened kingdom was invaded first by the Burmese and then in 1545 by Ayutthaya. Both attempted invasions were repulsed although significant damage had been done in the surrounding countryside. Lan Xang dispatched reinforcements to support their allies in Lanna. In response, Chairacha set out at the head of a second army in 1547 to take Chiang Mai where he was again defeated and forced into full retreat to Ayutthaya, where he died almost immediately upon his return.