Ian McKellen Explains Why He Turned Down the Chance to Play Dumbledore in 'Harry Potter' Franchise

Warner Bros/Getty

Ian McKellen
has already brought the wizard Gandalf to life on the big screen in the Lord of the Rings and The Hobbit trilogies, but it turns out the acclaimed thespian also had the opportunity to star as another beloved wizard -- Albus Dumbledore in the Harry Potter saga!

As it turns out, it was McKellen's choice not to take on the mantel.

PHOTOS: Almost Got the Part

Actor Richard Harris originated the role of the celebrated Hogwarts headmaster in the first two Harry Potter films, but he died after a battle with Hodgkin's disease in 2002, at the age of 72, before the start of production on Harry Potter and the Prisoner of Azkaban.

While filmmakers ended up casting Michael Gambon in the iconic role for the next six films in the series, producers first approached a number of famed English actors, including McKellen.

The X-Men star
recently sat down for an interview with the BBC, where he opened up about his decision to not take on the role of a second wild-bearded wizard.

WATCH: Ian McKellen Sounds Off on Oscar Diversity: 'No Openly Gay Man Has Ever Won'

"When they called me up and said would I be interested in being in the Harry Potter films, they didn’t say in what part," McKellen recounted. "I worked out what they were thinking, and I couldn't… I couldn't take over the part from an actor who I'd known didn't approve of me."

McKellen's explanation was in response to a comment Harris made years ago in which he criticized McKellen -- as well as actors Kenneth Branagh and Derek Jacobi -- for being "technically brilliant but passionless."

WATCH: Best Bromance Ever! Patrick Stewart and Ian McKellen Kiss at 'Mr. Holmes' Premiere

Harry Potter and the Prisoner of Azkaban
was released in 2004, one year after the release of the final film in the Lord of the Rings trilogy, The Return of the King.

However, despite turning down the role, it sounds as though McKellen occasionally wonders what could have been if he had decided to portray the iconic character.

"Sometimes, when I see the posters of Mike Gambon, the actor who gloriously plays Dumbledore, I think sometimes it is me," the 77-year-old Golden Globe-winning screen legend admitted.

WATCH: Orlando Bloom and Elijah Wood Have Epic 'Lord of the Rings' Reunion With Co-Stars