Yes, the Star Wars movies were inspired by a series of books.
* George Lucas, the creator of Star Wars, drew inspiration from various sources, including classic films like Flash Gordon and samurai movies, as well as literary works like Joseph Campbell's "The Hero with a Thousand Faces."
* He initially wrote a treatment for a film called "The Star Wars" in 1973, which served as the foundation for the first movie, *Star Wars: Episode IV – A New Hope* (1977).
* However, Lucas also hired Alan Dean Foster to write a novelization of the first film, which was published shortly before the film's release. This novelization expanded on the story and characters, providing additional details and backstory that weren't in the movie.
So, while the movies weren't directly adapted from books, they were influenced by them and inspired by them.
There is also a long-running series of Star Wars novels that have been published since the first movie. These novels have expanded on the Star Wars universe in numerous ways, telling stories that take place before, after, and during the events of the films, as well as introducing new characters and storylines.