The texts refer to a cosmic battle between Baal, who is now the lord of storms and fertility, and Yam, the god of the oceans.