In 1563, a treaty was signed between Lan Xang and Ayutthaya, which was sealed by the betrothal of Princess Thepkasattri (whose mother was Queen Suriyothai of Ayutthaya). However, King King Maha Chakkraphat instead tried to exchange Princess Kaeo Fa, which was immediately rejected. In the midst of the disagreement, the Burmese invaded northern Ayutthaya with the assistance of Maha Thammaracha the royal viceroy and governor of Phitsanulok. It was only then in 1564 that King Chakkraphat sent Princess Thepkasattri to Lan Xang along with a massive dowry in an attempt to buy back the broken alliance.