Kingship was the only form of government in Ancient Mesopotamia.
It was ordained by the Gods for the guidance and prosperity of people and cities, to maintain order and to protect the wealth in society.
Among the kingly duties were military leadership, priestly functions, law-giving and city building.
When kingship broke down so did law and order, with terrible consequences.
Source: Stuart France