When George Lucas introduced audiences around the world to a galaxy far, far away in 1977’sStar Wars, he drew influence from a number of disparate sources. The serialized format and pulpy visuals were inspired byFlash Gordon, the gunslingers of Tatooine wereripped straight from classic westerns, and the epic storytelling has been traced back to the literary masterworks of J.R.R. Tolkien. But there’s one director who influenced the saga more than anyone: Akira Kurosawa, widely regarded to be one of the greatest and most revolutionary filmmakers of all time.

Lucas was heavily influenced by Kurosawa’s samurai classics in characterizing the Jedi and crafting the saga’s lightsaber duels – not to mention all the now-iconic wipe scene transitions, a favorite of Kurosawa’s – while the lone wolf protagonist ofYojimbohas formed the basis for every badass bounty hunterfrom Boba Fett to Din Djarin. This tradition has continued into the Disney era, as Rian Johnson’s use of conflicting flashbacks inThe Last Jedihas been compared to the unreliable narrators ofRashomonand Dave Filoni clearly drew influence fromThrone of Bloodwith the foggy opening scene ofThe Mandalorianepisode “Chapter 13: The Jedi.”

R2-D2 and C-3PO in Star Wars and Tahei and Matashichi in The Hidden Fortress

RELATED:Star Wars: The Theatrical Cuts Of The Original Trilogy Should Be On Disney Plus

But aside from lightsaber duels being shot like Kurosawa swordfights with colorful blades, Lucas took the most inspiration from Kurosawa in the narrative framework of the originalStar Warsmovie. Lucas’ Oscar-nominated script forthe 1977 classicloosely follows the plot of Kurosawa’sThe Hidden Fortress. A lot of the specifics of the story are totally different, but the most crucial similarity is that Kurosawa’s saga of princesses in danger and warriors confronting their nemeses is told through the eyes of two down-on-their-luck slaves and Lucas’ is told through the eyes of two down-on-their-luck droids.

The climactic duels in Star Wars and The Hidden Fortress

Released in 1958,The Hidden Fortressfollows the exploits of two bickering peasants, Tahei and Matashichi, who get unwittingly caught up in a major battle. After escaping the theater of conflict, they meet a battle-hardened samurai named Rokurota Makabe on the war-torn wasteland. Together, they all join a princess who is leading a rebellion against oppressive forces led by Makabe’s old arch nemesis, with whom he has a climactic duel. The story has clear parallels with R2-D2 and C-3PO escaping from the Empire’s assault and teaming up with world-weary Jedi Obi-Wan Kenobi to save Princess Leia and the Rebel Alliance from Obi-Wan’s fallen apprentice Darth Vader,with whom he has a rematch.

Since the sequel trilogy sidelined them, it’s easy to forget that R2-D2 and C-3PO were once the true heroes of theStar Warssaga, just like Tahei and Matashichi – not the princess or the samurai – are the true heroes ofThe Hidden Fortress. They were the only two characters to appear in every episode and the first movie was told entirely through their eyes. They’re on Tantive IV as it’s attacked by the Empire, then they’re sent down to Tatooine with an important message, then they end up on the Death Star –Star Warswas initially the story of two droids passing from owner to owner,getting swept up in crazy intergalactic adventures.

When David Fincher was offered the job of directingEpisode VII,he told Total Filmthat he saw theStar Warssaga as “the story of two slaves [Artoo and Threepio] who go from owner to owner, witnessing their masters’ folly, the ultimate folly of man… I thought it was an interesting idea in the first two, but it’s kind of gone byReturn of the Jedi.” The early focus on the droids madeStar Warsan underdog story, much likeThe Hidden Fortress, following a pair of protagonists caught up in a conflict much, much bigger than themselves. Unfortunately, like Fincher points out, oncethe Skywalkers took center stage, the droids took more of a backseat.

Lucas didn’t stop borrowing fromThe Hidden Fortressafter the original 1977 masterpiece was in the can. There are some connections in the prequel trilogy, too. InThe Hidden Fortress, the princess switches places with a slave girl to hide her identity while the slave girl acts as a decoy. InThe Phantom Menace,Queen Padmé Amidala switches places with a handmaidenso she can join Qui-Gon on his journey into Mos Espa.

It’s not uncommon for filmmakers to draw heavily on past films, especially as time marches on and more and more stories have already been told:Ad AstraisApocalypse Nowin space;Friday the 13thisHalloweenat an abandoned summer camp;The Fast and the FuriousisPoint Breakwith street racing instead of surfing. ButThe Hidden Fortress’ influence onStar Warsis particularly notable. Lucas even offered the role of Obi-Wan Kenobi toThe Hidden Fortress’ own veteran warrior Toshiro Mifune, according to the actor’s daughter, but he turned it down.

Thanks to the other influences and Lucas’ own flair,Star Warsmanaged to stand on its own instead of feeling like it was re-treading familiar territory. The key to borrowing heavily from existing classics is putting your own spin on it. WhileJokerfelt too derivative ofThe King of ComedyandTaxi Driverbecause it made the same points less effectively,Star Warsfeels entirely separate fromThe Hidden Fortressbecause Lucas took Kurosawa’s basic plot, but then set it in space with lightsabers and Wookiees and Death Stars.

MORE:The Matrix Is Basically A Live-Action Remake Of This Classic Anime