In 1767, after dominating southeast Asia for almost 400 years, the Ayutthaya kingdom was destroyed. The royal palace and the city were burnt to the ground. The territory was occupied by the Burmese army and local leaders declared themselves overlords including the lords of Sakwangburi, Phimai, Chanthaburi, and Nakhon Si Thammarat. Chao Tak, a nobleman of Chinese descent and a capable military leader, proceeded to make himself a lord by right of conquest, beginning with the legendary sack of Chanthaburi. Based at Chanthaburi, Chao Tak raised troops and resources, and sent a fleet up the Chao Phraya to take the fort of Thonburi. In the same year, Chao Tak was able to retake Ayutthaya from the Burmese only seven months after the fall of the city.