The plot revolves around the world’s #2 supervillain, Gru (Steve Carell) whose evil attempts are always thwarted by Vector (Jason Segel), the #1 supervillain. In an attempt to outdo Vector, he starts plotting to steal the moon while he hides underground in a suburban neighborhood living with his idiotic minions which look like genetically altered Corn Pops. In the teaser trailer, the Great Pyramid of Giza is shown to have been stolen and may contribute to part of Gru’s plan. His plot is jeopardized by three orphaned girls (Miranda Cosgrove, Dana Gaier, and Elsie Fisher) who see him as a prospective father. [1]

Dewey Finn (Jack Black), a hard rock singer and guitarist, is unanimously voted out of his band No Vacancy by the rest of the members for his arrogance and frequent hyperactive stage antics. His submissive roommate and lifelong friend Ned Schneebly (writer Mike White), a substitute teacher, threatens Dewey with eviction under heavy pressure from his girlfriend Patty Di Marco (Sarah Silverman) unless Dewey “gets a real job” and pays off his growing rent debt. Dewey feels forced to give up his passion until he receives a phone call intended for Ned from Rosaline Mullins (Joan Cusack), principal of Horace Green, a prestigious prep school, asking Ned to fill in for a teacher who would be out for several weeks. Desperate for income to avoid getting evicted, Dewey impersonates Ned and takes the job as a substitute teacher for the fifth-grade class.

Dewey has no real idea how to carry out his role as a teacher, and instead simply gives his students constant free time. However, when he overhears his pupils playing in music class he realizes that some of the children in the class have musical talent. He decides to turn his temporary job into what he tells them is a special class project, but is actually a personal one: to turn a classroom full of kids into a rock band and crew, complete with a ten-year-old manager, a girl called Summer (Miranda Cosgrove), which will serve as a vehicle to stardom, ultimately to win the upcoming Battle of the Bands, where he is out to avenge his eviction from his old band and win the $20,000 prize.

…

As the credits go up, Summer is seen arguing a deal over the cell phone as she enters the School of Rock, a newly opened after-school program where Dewey continues to coach the band and Ned teaches the younger ones, and the credits roll as the band sings “The movie is over, but we’re still on screen” breaking the fourth wall.