You crushed the heads of Leviathan; You gave him as food for the creatures of the wilderness. You split open springs and brooks; You dried up ever-flowing streams. (Psalms 74:14-15 ESV)
This is a psalm recounting how God delivered His people from Egypt after they cried out for deliverance. The chronological order of events helps us to identify the armies of Egypt as Leviathan because the next item describes the time after Pharoah’s defeat when God brought water from the rocks in the wilderness.
Thanks to this description we know that the metaphorical meaning of Leviathan is an army. In the spiritual realm, Satan’s network, hovering over the Earth, is called by the same name. He is described by God who speaks with Job: