In 1975, the wizard Shazam takes a young child named Thaddeus Sivana to an alternate universe to make him his champion against the Seven Deadly Sins. Sivana is tempted by sin and the Wizard tells him he will never be good enough. Shazam then sends him back to the world to the very moment that he left. Sivana panics and his father accidentally crashes his car and permanently breaks his legs. Sivana's brother blames him for what happened and hates him ever since. Sivana later becomes a doctor and pays for an experiment to reverse engineer what happened to him that way he could enter Shazam's world and fight Shazam. Dr Sivana then strikes a deal with the Seven Deadly Sins to become a supervillain in exchange for power. Dr. Sivana then kills his father and brother. Billy Batson is taken in by a new family after having repeatedly run away from foster homes to try to find his mother who was accidentally separated from him at a carnival when he was a young child. Billy meets his new foster brother Freddie who knows everything there is to know about superheroes and who walks with a crutch. Billy finds Freddie annoying. He then sees two bullies beat Freddie up with his crutch and does nothing until they make fun of Freddie for not having a mother. Billy then attacks and beats Freddie's bullies. Billy then runs away and gets onto a train. The wizard Shazam then appears to Billy and tells him that he is worthy of his power. The wizard tells him to say the name Shazam and transform into a superhero with his powers. Billy says Shazam and transforms into an adult superhero. Billy then reaches out to Freddie to find out how to be a superhero and transforms back by saying Shazam. Billy becomes arrogant because of his power and so he chooses not to transform into his superhero form and visit Freddie as his hero at the school’s next lunch like Freddie had said he would. When no superhero showed up, they gave Freddie a suitcase wedgie. Freddie then came to Billy while Billy was in his superhero form during a public appearance and tells him he only cares about himself. Dr. Sivana then comes and attacks Billy. Billy tries and fails to fight Dr.Sivana and he transforms back into a teenager by saying Shazam so that he can escape. Dr. Sivana attacks Freddie and threatens to kill him if he doesn’t tell him where Billy lives. Freddie tells him. Dr. Sivana then kidnaps Billy’s foster family to get Billy to come to their rescue. Billy strikes a deal with Dr.Sivana to give up his powers in exchange for his foster family but instead of giving Dr. Sivana his power he gives his powers to his family by having them say Shazam. Dr.Sivana has six of the Seven Deadly Sins try to fight against Billy and his family but they are defeated. Billy then manages to trick the Sin of Envy to leave Dr. Sivana and fight Billy himself. After Billy wins Dr. Sivana is left without power and is captured and imprisoned. Billy in his superhero form then visits Freddie at his cafeteria lunch and brings Superman with him. In a scene after the credits a talking caterpillar visits Dr. Sivana in prison and tells him they can help each other.