From Britannica Concise Encyclopedia
In Mesopotamian religion, the god of the sun, who, with his father, Sin, and the goddess Ishtar, was part of an astral triad of divinities. As the solar god, Shamash was the heroic conqueror of night and death, and he became known as the god of justice and equity. He was said to have presented the Code of Hammurabi to the Babylonian king. At night he served as judge of the underworld.