Phraya Pan

Phraya Pan (, ), also called Balaraj ( or , ), is a semi-legendary monarch of the later Dvaravati period in west-central Thailand. He is attested chiefly in the Legend of Phra Pathommachedi () and in the recensions of the Legend of , which make him the son and successor of Phraya Kong of Nakhon Pathom.

Accession and reign at Nakhon Pathom

In the narrative he came to the throne after defeating and killing his father. Working from the and the Yonok Chronicle, Borihan Thepthani placed his reign at Nakhon Pathom between 867 and 913. The legends remember him principally for the patricide by which he took power. His reign there ended when the king of Ratchaburi, who was his adoptive father, seized the throne, after which he moved north.

Foundation of Suphan Buri

Phraya Pan is credited with founding several cities, of which the most notable is Suphan Buri, later the principal city of the Suphannabhum kingdom. Its foundation is traditionally dated between 877 and 882, coinciding with the appointment of his son Pansa () as its first ruler.

The Yonok Chronicle suggests that Pansa was succeeded by Chandra Devaraja, whose reign would fall between 927 and 946. In those years Tambralinga, under Sujita and his son Kampoch, campaigned against several polities of the Menam valley, and the external threats the chronicle records Chandra Devaraja as facing have been associated with those incursions.

Haripuñjaya

After leaving Nakhon Pathom he ruled at Haripuñjaya in the north. The Yonok Chronicle records two reigns there: a first in 899, lasting two months and fifteen days, and a second from 913 until his death at Lamphun in 916.