Hamill surprised everyone when he appeared as a young Skywalker, who was almost identical to how he looked four decades ago in the original Star Wars trilogy.
The actor’s de-aging was possible because of advanced visual effects, which have regularly been used in recent Star Wars movies.
For instance, the technology was used in 2016’s Rogue One, where they brought back late actors Carrie Fisher and Peter Cushing as young Leia Organa and Grand Moff Tarkin.
Similar technology was put to use in 2019’s The Rise of Skywalker. In there, Hamill’s Skywalker and Fisher’s Organa were brought back in a flashback to when they were training together as Jedi.
Apart from the special visual effects, multiple body double actors were cast to support Hamill to reprise that younger role.
The end credits of the season 2 finale revealed that Max Lloyd-Jones was cast as the body double for the Jedi. In addition, Matt Rugetti was credited as the stunt double.
Hence, it took advanced visual effects, CGIs, and three actors to bring the young Skywalker on The Mandalorian season 2 finale.