Shazam is a Skyfather-level entity, along with the aforementioned Odin, Zeus, & the Guardians of the Universe, & is one of the most powerful magic-wielding entities in the entire DCU, with an enormous array of skills, abilities, & magical or mystically-enhanced powers, not to mention incredible magical items, relics, & artifacts at his command. Magic is pretty much an ultimate plot device. Literally, it’s M-A-G-I-C, which is by definition magical: a trump card you can do just about whatever you want with, up to & including warping, shaping, or outright altering reality itself in any way you see fit.
S The wisdom of Solomon; H The strength of Hercules; A The stamina of Atlas; Z The power of Zeus; A The courage of Achilles; M The speed of Mercury.