Yam is the god of the sea in the Canaanite pantheon. Yam takes the role of the adversary of Baal in the UgariticBaal Cycle. The deity's name derives from the Canaanite word for "Sea", and is one name of the Ugaritic god of Rivers and Sea. Also titled ṯpṭ nhr, he is also one of the 'ilhm or sons of El, the name given to the Levantine pantheon. Of all the gods, despite being the champion of El, Yam holds special hostility against Baal Hadad, son of Dagon. Yam is a deity of the sea and his palace is in the abyss associated with the depths, or Biblical tehom, of the oceans. Yam is the deity of the primordial chaos and represents the power of the sea, untamed and raging; he is seen as ruling storms and the disasters they wreak, and was an important divinity to the maritime Phoenicians. The gods cast out Yam from the heavenly mountain Sappan. The fight of Baal-Hadad with Yam has long been equated with the Chaoskampfmytheme in Mesopotamian mythology in which a god fights and destroys a "dragon" or sea monster; the seven-headed dragonLotan is associated closely with him and Yam is often described as the serpent. Both Mesopotamian Tiamat and Biblical Leviathan are adduced as reflexes of this narrative, as is the fight of Zeus with Typhon in Greek mythology.
Baal Cycle
In the Ugaritic Baal Cycle, El, chief of the Gods and father to the second-tier divinities, appoints Yam to fight Hadad-Baal. In the interpretatio graeca of Philo of Byblos, El corresponds to Cronus, Hadad-Baal to Zeus, Yam to Poseidon and Mot to Hades. KTU 1.2 iii: After a great war in heaven involving many of the gods, Yam is soundly defeated: Hadad holds a great feast, but not long afterwards he battles Mot and through his mouth he descends to the netherworld. Yet like Yam, Death too is defeated and in h. I AB iii the Lord arises from the dead:
Comparative mythology
The narrative of the conflict of Yam with Baal-Hadad has long been compared to parallels in Mesopotamian mythology, the battle between Tiamat and Enlil and Babylonian Marduk and, more generically, the Chaoskampf motif in comparative mythology.