From the 11th to 13th centuries, Dawei was part of the Pagan Empire. From 1287 to 1564, Dawei became part of the Sukhothai Kingdom and its successor Ayutthaya Kingdom (Siam). From 1564 to 1594, Dawei was part of the Toungoo Kingdom of Burma. Siam temporarily regained the city between 1594 and 1614. From 1614 to the 1740s, Dawei was the southernmost city under Burmese authority, and was defended by a Burmese garrison. In the late-1740s, during the Burmese civil war of 1740–1757, Dawei, along with the northern Tenasserim coast, was taken over by Siam. Burma regained the city in 1760, and extended its control over the entire Tenasserim coast in 1765. The Tenasserim coast was ceded to the British after the First Anglo-Burmese War (1824–1826).