Starting in the middle of the 16th century, the kingdom came under repeated attacks by the Taungoo Dynasty of Burma. The Burmese–Siamese War (1547–49) resulted in a failed Burmese siege of Ayutthaya. A second siege (1563–64) led by King Bayinnaung forced King Maha Chakkraphat to surrender in 1564. The royal family was taken to Pegu (Bago), with the king's second son Mahinthrathirat installed as the vassal king. In 1568, Mahinthrathirat revolted when his father managed to return from Pegu as a Buddhist monk. The ensuing third siege captured Ayutthaya in 1569 and Bayinnaung made Mahathammarachathirat (also known as Sanphet I) his vassal king, instating the Sukhothai dynasty.