Prince William and Harry
Prince William and Harry Facebook

The premiers of "Star Wars: The Last Jedi" turned out to be a star-studded royal affair. Prince William and Prince Harry attended the premiere of the much awaited Star Wars franchise.

As per reports, William and Harry -- who proposed to actress Meghan Markle last month -- have a cameo in the movie as they visited the film set in April last year. They will appear as Stormtroopers and will reportedly give Benicio Del Toro a slap on the backside.

When they arrived, the royals were greeted by the small droid BB-8 and diehard fans before the European premiere of the film in Kensington, west London, reports mirror.co.uk.

The brothers then met members of the cast and crew, and Harry was later presented with a Stormtrooper's helmet.

The film's stars Mark Hamill, Adam Driver, John Boyega and Daisy Ridley were also on hand as fans.

The stars addressed fans before heading inside, with Ridley promising a "fun and emotional journey" in the latest installment of the hit sci-fi franchise.

The star, who reprises her role as Rey, braved the winter air as she stepped onto a red carpet lined with Stormtroopers on Tuesday evening.

Ridley was joined at the event by co-star Hamill, returning as Luke Skywalker, Boyega as Finn, Driver as evil Kylo Ren and director Rian Johnson.

Veteran actor Anthony Daniels, who has played lovably fussy droid C-3PO in every "Star Wars" episode so far, also joined in the fun.