Sin, Sumerian Nanna, is the Mesopotamian moon-god, whose waxing and waning crescent measured out the months and governed the calendar, and who was accordingly a god of time, reckoning and the wisdom of the night. He is the father of the sun-god Shamash and of Inanna-Ishtar, so that in the Mesopotamian scheme the moon is the parent of the sun rather than its lesser companion. His two great cult centres were Ur in the far south, where his temple, the great ziggurat, still stands, and where the ruler's daughter served as high priestess (entu), an office famously held by Enheduanna, the earliest author known by name, and Harran in the far north, where his worship persisted remarkably late, surviving into the Islamic period. His symbol is the crescent moon, likened to the horns of a bull.
Sin's northern cult at Harran had a dramatic later chapter under the last king of Babylon, Nabonidus (reigned 556 to 539 BCE), an unusually devoted worshipper of the moon-god who rebuilt Sin's temple there, the Ekhulkhul, "House of Rejoicing," and appears to have sought to elevate Sin above Babylon's own patron Marduk. This religious preference proved controversial enough with the Marduk priesthood that some historians connect it to Nabonidus's decade-long withdrawal to the Arabian oasis of Tayma, and, ultimately, to Babylon's fall to Cyrus of Persia in 539 BCE.