The devarāja order grew out of both Sanatana Dharma and separate local traditions depending on the area. It taught that the king was a divine universal ruler, a manifestation of Shri Bhagawan (often attributed to Shiva or Vishnu). The concept viewed the monarch to possess transcendental quality, the king as the living god on earth. The concept is closely related to the Bharati concept of Chakravartin (universal monarch). In politics, it is viewed as the divine justification of a king's rule. The concept was institutionalized and gained its elaborate manifestations in ancient Java and Kambujadesha, where monuments such as Prambanan and Angkor Wat were erected to celebrate the king's divine rule on earth.