Whatever the assumptions are, the fact that Phetchaburi is an ancient city with a very long history is undeniable. This has been proven by many archaeological findings which could be dated back to the Dvaravati Period.
During Sukhothai and Ayutthaya Kingdoms, Phetchaburi was a strategic royal fort in the west. Only a lineage of Kings had the rights to rule this historical city. That is why Phetchaburi has been called by some scholars as the "Living Ayutthaya" as the town shares many similar things to the City of Ayutthaya. The prosperity of the Ayutthaya Kingdom can be seen and appreciated in Phetchaburi's wealth of fine old temples.
In the Rattanakosin Era, Phetchaburi has changed its character to a town of charming beauty, with peaceful seaside resorts and superb natural reserves. The three Kings of the Rattanakosin Period, King Rama IV, V, and VI established their retreats here. They built the three palaces namely