The legal impetus was born when civilisation, as a concept, begin to develop in a tangible form.
The cult of Sin was intimately connected with the cattle herds and the domestication of large flocks of animals.
It is fair to conclude that it was military rule--and not kingship, per se--that led to the self-deification of kings.
In Mesopotamia, the concept of a temporary ruler acting as a custodian of the divine sought to solve the conflict that had arisen between secular and religious leadership.
During and throughout the course of his long reign, Ashurbanipal utilised the resources at his disposal to construct the Library of Ashurbanipal: a collection of texts and documents of various different genres.
"Enheduanna is indeed the world’s first individually identified author. As well as being a priestess, she was also a princess as the daughter of Sargon of Akkad (‘Sargon the Great’). Ishtar was worshipped with songs of praise, festivals, and libations."