"the gods of Egypt" against the Egyptians, and showed Himself in
control of all events and powers they would have attributed to the
objects of their faith.
Exodus 12:12 states the summational purpose of the plagues:
For I will pass through the land of Egypt that night, and I will
strike all the firstborn in the land of Egypt, both man and beast; and
on all the gods of Egypt I will execute judgments: I am the LORD.
--Douglas Stuart