Spaceballs is a 1987 American space opera parody film co-written, produced and directed by Mel Brooks. It primarily parodies the original Star Wars trilogy, but also of other popular franchises such as Star Trek, Alien, The Wizard of Oz, 2001: A Space Odyssey, Planet of the Apes, and Transformers.