I read or heard somewhere that the plagues corresponded to different gods that the Egyptians worshiped. That God basically used the 10 plagues to demonstrate that He was God over all the things that the Egyptians were attributing to other gods in addition to freeing Israel.
Thanks DannyTN!