Middle School: The Worst Years of My Life is a 2016 American live-action/animated family comedy film directed by Steve Carr and written by Chris Bowman, Hubbel Palmer and Kara Holden, based on the 2011 novel of the same name by James Patterson and Chris Tebbetts. The film stars Griffin Gluck, Lauren Graham, Rob Riggle, Isabela Merced, Retta, Thomas Barbusca, Andy Daly, and Adam Pally. It follows Rafael "Rafe" Khatchadorian (played by Gluck), a middle school student who sets out to break every one of the many rules made by his domineering principal.