History.com article notes some historical inspirations for Star Wars, especially Nazi Germany.
Christopher Klein, "The Real History that Inspired 'Star Wars,'" History.com, December 17, 2015, accessed March 7, 2023
There’s nothing subtle about this historical allusion in Star Wars. After all, the elite assault forces fanatically devoted to the Galactic Empire share a common name with the paramilitary fighters who defended the Nazi Party—stormtroopers. The Imperial officers’ uniforms and even Darth Vader’s helmet resemble those worn by German Army members in World War II, and the gradual rise of Palpatine from chancellor to emperor mirrored Adolf Hitler’s similar political ascent from chancellor to dictator.