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:
...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
The brothers also took part in a lightsaber battle and got a sneak preview of the film.
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)