Sir Ian McKellen is the actor who famously portrayed Gandalf in both "The Lord of the Rings" and "The Hobbit" film trilogies. His performance as Gandalf has been highly praised and is considered one of the most iconic portrayals in the series.