Shazam is the guardian of the Rock of Eternity, he is one of the most powerful magical beings in the DC Universe. He is the one who turned Billy Baston into The World's Mightiest Mortal.
Shazam first appeared in Whiz Comics #2 back in February 1940. He was Created and published by Fawcett Publications.
When Shazam was a young boy, some 9000 years ago, he was chosen by six long-since forgotten Gods to become their hero. By speaking the word "Vlarem", the child becomes the Champion.
The six Gods were:
Thousands of years later Shazam would chose his successor the same way that he was chosen when he was impressed with a young boy. He determined Billy Batson was the worthy and proper recipient of the power of the Elders, thus was Billy was chosen to become Shazam's champion and granted the powers the Elders. All-though Billy Batson was not the first to be chosen, he proved to be the right one.
All-though Shazam's involment in the creation of Captain Marvel has pretty much existed in every version of the story, he was absent fron the 1974 TV seriers "Shazam!" The teenage Billy instead speaks directly to the elders that empowered him. But Shazam would make his appearance in the 2010 animated film "Superman/Shazam!: The Return of Black Adam". The magician Shazam choses Bill to be its new champion hoping to correct the mistake he made 5000 years ago when he choose Black Adam as its champion.
Powers & Abilities
The wizard's name, SHAZAM, is an acronym with each letter standing for an Elder who grants his power to Shazam's champion. When young Billy Batson speaks the wizard's name, a magical lightning bolt from Zeus charged with the power of the Shazam Elders transforms Billy from an adolescent boy into the adult hero, Captain Marvel, empowered by the gods.
S is for the wisdom of Solomon. The wisdom of Solomon gives Billy great knowledge as well as a photographic memory. Solomon is actually able to speak to Billy during his times of need.
H is for the strength of Hercules, strongest of the gods. Billy is empowered with Hercules' nearly limitless superhuman-strength which is often compared to and rivals that of Superman.
A is for the stamina of Atlas, Titan who bears the heavens on his shoulders. This means he doesn't need to sleep or eat as Captain Marvel and has virtually limitless superhuman endurance.
Z is for the power of Zeus, most powerful of the gods. This grants Captain Marvel magic resistance and the lightning that changes Billy. He has used the lightning as a weapon before, when he dodges it - allowing it to strike an enemy.
A is for the courage of Achilles, greatest hero of the Trojan War. This grants him an inner strength and confidence.
M is for the speed of Mercury, swiftest of the gods. This grants Marvel his god-like speed and his power to fly. This power is also responsible for his sorcery skills.