Dewey Finn is a passionate, down-on-his-luck rock guitarist who gets unceremoniously kicked out of his own rock band. Desperate for rent money, he impersonates his mild-mannered roommate Ned and takes a substitute teaching job at a prestigious, strict elementary prep school. Discovering that his fifth-grade students possess hidden musical talents, Dewey decides to secretly mold them into a high-energy rock band to compete in the upcoming regional Battle of the Bands. Along the way, he teaches the children how to express themselves through music while rediscovering his own joy for performing.