Officially, the town was known as  (, from Pali and Sanskrit, literally 'city of treasures gracing the ocean') or , according to the ''Ayutthaya Chronicles''. ''Bangkok'' was likely a colloquial name, albeit one widely adopted by foreign visitors, who continued to use it to refer to the city even after the new capital's establishment.