R2-D2 is a fictional robot character in the Star Wars franchise created by George Lucas. He has appeared in nine of the ten Star Wars films to date. At various points throughout the course of the films, R2 is a friend to C-3PO, Padmé Amidala, Anakin Skywalker, Leia Organa, Luke Skywalker, and Obi-Wan Kenobi.