Tak was a historical kingdom built over 2000 years ago even before the sukhothai period. The ancient kingdom had its peak around the 1st century. By the 5th century the capital of this kingdom was moved south to Lavo.
A city named Ban Tak was established by Jamadevi princess of the Lavokingdom around 663 CE. It became part of the Sukhothai kingdom through battles led by Ramkhamhaeng the Great and formed the main fortress on the western front. The city was moved further west and renamed MueangRahang when the Ayuthaya kingdom was lost to Burma during King MahaThammarachareing. The city was moved back to the east side of the Ping River during the early Bangkok period.