While Sukhothai was declining in the north, Ayutthaya was gaining strength in the south, both as a maritime state and as a land-based empire. Sukhothai was reduced to vassalage in 1378 and finally absorbed in 1438. Nakorn Sri Thammarat beame a vassal as well. Chiang Mai was attacked but was not incorporated as a vassal.