Nakhon Si Thammarat (Thai: นครศรีธรรมราช, pronounced [náʔkʰɔːn sǐː tʰammarâːt], alternative English transliteration: Nakhon Sri Thammarat from Pali Nagara Sri Dhammaraja) is a city (thesaban nakhon) in southern Thailand, capital of the Nakhon Si Thammarat Province and the Nakhon Si Thammarat District. It is about 610 km (380 mi) south of Bangkok, on the east coast of the Malay Peninsula. The city was the administrative center of southern Thailand during most of its history. Originally a coastal city, silting moved the coastline away from the city. The city has a much larger north to south extension than west to east, which dates back to its original location on a flood-save dune. The modern city centre on the train station is north of Old Town. As of 2005, the city had a population of 105,417.
It is one of the most ancient cities of Thailand, previously the Kingdom of Ligor, and contains many buildings and ruins of historical significance. With the fall of the Siamese capital of Ayutthaya in 1767 it regained independence, but returned to its allegiance on the founding of Bangkok. In the 17th century British, Portuguese, and Dutch merchants set up factories there and carried on an extensive trade.