Nāga as being the lesser deity of earth and water is prevalent in the Hindu period of Indonesia, before the introduction of Islam. Phaya Nak or Phaya Nāga (Thai: พญานาค; RTGS: phaya nak; lit. 'lord of Nāga', phaya derived from Mon which necessarily mean large nobility) or Nakkharat (Thai: https://jeffreyymhuf.blogzet.com/details-fiction-and-23naga-50368769