In many historical societies, the position of kingship carries a sacral meaning; that is, it is identical with that of a high priest and judge. The concept of theocracy is related, although a sacred king does not need to necessarily rule through his religious authority; rather, the temporal position itself has a religious significance behind it.
Sir James George Frazer used the concept of the sacred king in his study The Golden Bough (1890–1915), the title of which refers to the myth of the Rex Nemorensis. Frazer gives numerous examples, cited below, and was an inspiration for the myth and ritual school. However, "the myth and ritual, or myth-ritualist, theory" is disputed; many scholars now believe that myth and ritual share common paradigms, but not that one developed from the other.
According to Frazer, the notion has prehistoric roots and occurs worldwide, on Java as in sub-Saharan Africa, with shaman-kings credited with rainmaking and assuring fertility and good fortune. The king might also be designated to suffer and atone for his people, meaning that the sacral king could be the pre-ordained victim in a human sacrifice, either killed at the end of his term in the position, or sacrificed in a time of crisis (e.g. the Blót of Domalde).
The Ashanti flogged a newly selected king (Ashantehene) before enthroning him. So that he might remember what it felt like to suffer as a man, to restrain him in his thereafter acquired god-like power, as the Auriga reminded the conquering hero returning to Rome in his triumph, the crowd's ecstatic adulation rolling in waves across his ego, that he remained but a mortal, and must die.
From the Bronze Age in the Near East, the enthronement and anointment of a monarch is a central religious ritual, reflected in the titles "Messiah" or "Christ", which became separated from worldly kingship. Thus Sargon of Akkad described himself as "deputy of Ishtar", just as the modern Catholic Pope takes the role of the "Vicar of Christ".
Kings are styled as shepherds from earliest times, e.g.