In 1971, George Lucas wanted to film an adaptation of the Flash Gordon serial, but could not obtain the rights, so he began developing his own space opera. After directing American Graffiti (1973), he wrote a two-page synopsis, which 20th Century Fox decided to invest in. By 1974, he had expanded the story into the first draft of a screenplay.

The 1977 movie's success led Lucas to make it the basis of an elaborate film serial. With the backstory he created for the sequel, Lucas decided that the series would be a trilogy of trilogies. Most of the main cast would return for the two additional installments of the original trilogy, which were self-financed by Lucasfilm.