Pharaoh was the son of Re. Israel was explicitly called the son of Yahweh in the confrontation with Pharaoh (Exod 4:23; cf. Hos 11:1). Yahweh and his son would defeat the high god of Egypt and his son. God against god, son against son, imager against imager. In that context, the plagues are spiritual warfare. Yahweh will undo the cosmic order, throwing the land into chaos.

