As devaraja (Sanskrit for "divine king"), the king ultimately came to be recognized as the earthly incarnation of Shiva and became the object of a politico-religious cult officiated over by a corps of royal Brahmans who were part of the Buddhist court retinue. In the Buddhist context, the devaraja was a bodhisattva (an enlightened being who, out of compassion, foregoes nirvana in order to aid others). The belief in divine kingship prevailed into the eighteenth century, although by that time its religious implications had limited impact. The French Abbe de Choisy, who came to Ayutthaya in 1685, wrote that, "the king has absolute power. He is truly the god of the Siamese: no-one dares to utter his name." Another 17th century writer, the Dutchman Van Vliet, remarked that the King of Siam was "honoured and worshipped by his subjects more than a god."
One of the numerous institutional innovations of King Trailok (1448-88) was to create the position of uparaja, or heir apparent, usually held by the king's senior son or full brother, in an attempt to regularize the succession to the throne -- a particularly difficult feat for a polygamous dynasty. In practice, there was inherent conflict between king and uparaja and frequent disputed successions.