Ayutthaya expanded its sphere of influence over a considerable area, ranging from the Islamic states on the Malay Peninsula, the Andaman ports of present-day India, the Angkor kingdom of Cambodia, to states in northern Thailand. In the 18th century, the power of the Ayutthaya Kingdom gradually declined as fighting between princes and officials plagued its political arena. Outlying principalities became more and more independent, ignoring the capital's orders and decrees.
In the 18th century, the last phase of the kingdom arrived. The Bamar people, who had taken control of Lan Na and had also unified their kingdom under the powerful Konbaung Dynasty, launched several blows against Ayutthaya in the 1750s and 1760s. Finally, in 1767, after several months of siege, the Burmese broke through Ayutthaya's walls, sacked the city and burned it down. The royal family fled the city and Ayutthaya's last king, Ekkathat, died of starvation ten days later while in hiding. The Ayutthaya royal line had been extinguished. Overall there had been 33 kings in this period, including an unofficial king.