excavated there indicates that at one point in the Old Babylonian period a certain Abdi-Erakh was a king of an unspecified city in Mesopotamia. After its initial discovery, Thorkild Jacobsen proposed that he ruled Eshnunna itself, but this view has since been disproved. Another Abdi-Erakh, a contemporary of Ipiq-Adad of Eshnunna, apparently ruled over Ilip and Kish. It is sometimes argued that in Mesopotamia Erakh/Yarikh and Sin might have been understood as, respectively, Amorite and Akkadian names of the same deity, rather than two separate moon gods. However, Ichiro Nakata lists them separately from each other in his overview of deities attested in Mari, unlike the various variants of the names of the weather or solar gods. The deity Sin-Amurrum, attested in the incantation series Maqlû (tablet VI, verse 4) according to Karel van der Toorn might be the Mesopotamian name of the Amorite moon god. In Ugarit Yarikh was regarded as one of the primary deities of the Ugaritic pantheon. His role as a lunar deity was qualified by the epithet nyr šmm, "luminary of the heavens" or "lamp of the heavens," which has been compared to a similar Akkadian title of the Mesopotamian moon god Sin, munawwir šamê u ersetim, "illuminator of the heavens and earth." He could also be referred to as a "prince" (zbl), which is also attested in the case of multiple other deities, including the weather god Baal and the underworld god Resheph, and is meant to signify high status. Furthermore, a single passage refers to him as "the most pleasant of the gods" (n’mn ‘ilm), which was apparently meant to highlight his physical attractiveness. According to Dennis Pardee, it is possible he was believed to spend the day in the underworld. It has also been suggested that he could function as its gatekeeper, a role which is otherwise well attested for the god Resheph. These two gods are paired in an incantation against snakebite. In the standard Ugaritic deity lists, Yarikh follows the Kotharat and precedes Mount Saphon. In another similar text, he follows the sea god Yam and Baal, whose names are written in a single line, and precedes the craftsman god Kothar. He is also attested in ritual texts. During celebrations which took place during the full moon in an unknown month, two bulls had to be sacrificed for him. Subsequently in an offering list included in the same prescriptive text