 In the later-released prequel trilogy, a younger version of the character serves as one of the two main protagonists alongside Anakin Skywalker and is portrayed by Scottish actor Ewan McGregor.In the original trilogy, he is a mentor to Luke Skywalker, to whom he introduces the ways of the Jedi.After sacrificing himself in a duel against Darth Vader, Obi-Wan guides Luke in his fight against the Galactic Empire.