They received a tour by actress Daisy Ridley and got a chance to meet Mark Hamill, who plays Luke Skywalker, as well as director Rian Johnson, on Tuesday.
Pictures and a video from the visit were shared by Kensington Palace's twitter account on Wednesday:
Don't forget BB-8 - The Duke and Prince Harry say hi to the @starwars cast!https://t.co/9ibP96L2vS
— Kensington Palace (@KensingtonRoyal) April 19, 2016
Prince Harry receives some piloting advice from @HamillHimself pic.twitter.com/MKRO31ki2l
— Kensington Palace (@KensingtonRoyal) April 19, 2016
Prince Harry, Chewbacca and @JohnBoyega compare outfits @PinewoodStudios pic.twitter.com/vtmc4f1GXX
— Kensington Palace (@KensingtonRoyal) April 19, 2016
The Duke meets Luke Skywalker @HamillHimself and @starwars director @rianjohnson pic.twitter.com/XDizZ6GR2y
— Kensington Palace (@KensingtonRoyal) April 19, 2016
...and so has The Duke! pic.twitter.com/c9gOh4ACyA
— Kensington Palace (@KensingtonRoyal) April 19, 2016
Prince Harry has made a new friend... pic.twitter.com/mTra1UoSMx
— Kensington Palace (@KensingtonRoyal) April 19, 2016
Next up: a visit to the @starwars costume department @PinewoodStudios pic.twitter.com/18y76YLFxK
— Kensington Palace (@KensingtonRoyal) April 19, 2016
The brothers also took part in a lightsaber battle and got a sneak preview of the film.
Time for a lightsaber battle! @starwars @PinewoodStudios pic.twitter.com/9hHxPxfTti
— Kensington Palace (@KensingtonRoyal) April 19, 2016
Kensington Palace had announced Tuesday's visit on Twitter, and explained that the princes would be celebrating Star Wars "fantastic British creative talent".
Their visit will recognise the wealth of fantastic British creative talent involved in the production of the @starwars films
— Kensington Palace (@KensingtonRoyal) April 18, 2016
Star Wars: Episode VIII will release in 2017. (Also Read: Star Wars: Episode VIII to Release Seven Months Later Than Planned)