In the example listed in Psalms 74. Leviathan is believed to be Egypt.<quoted text> You've got this in the bible, too.
Psalm 74:14 "Thou brakest the heads of leviathan in pieces, and gavest him to be meat to the people inhabiting the wilderness".
LEVIATHAN has more than one head in Psalms(just one in other places).
In Ugaritic texts(where much of the OT mythology originated), LEVIATHAN has 7 heads.
ADAM CLARKE'S BIBLE COMMENTARY
"Thou didst divide the sea " - When our fathers came from Egypt.
"Thou brakest the heads of the dragons in the waters. " - Pharaoh￼, his captains, and all his hosts were drowned in the Red Sea, when attempting to pursue them.
"The heads of leviathan " - Leviathan might be intended here as a personification of the Egypttan government￼; and its heads, Pharaoh￼ and his chief captains.
"To the people inhabiting the wilderness. " - Probably meaning the birds and beasts of prey. These were the people of the wilderness, which fed on the dead bodies of the Egyptians, which the tides had cast ashore. The Vulgate, Septuagint, AEthiopic, and Arabic read, "Thou hast given him for meat to the Ethiopians," or Abyssinians.
"Thou didst cleave the fountain " - Thou didst cleave the rock in the wilderness, of which all the congregation drank.