Jake Gyllenhaal is the first to admit his mistakes.

While chatting with Yahoo Entertainment during press for “Spider-Man: Far From Home”, Gyllenhaal confessed that his 2010 role in Disney’s “Prince Of Persia: The Sands Of Time” was something he regrets.

RELATED: Tom Holland And Jake Gyllenhaal Channel ‘Roxbury’ Brothers At ‘Spider-Man: Far From Home’ Premiere

The video game adaptation of “Prince Of Persia” caused a lot of controversy when it was released, many called it one of the decade’s worst examples of Hollywood whitewashing for casting a Gyllenhaal in the lead role instead of an actor of Iranian descent.

And now, the Oscar-nominated actor called it one of the biggest missteps of his career, “I think I learned a lot from that movie in that I spend a lot of time trying to be very thoughtful about the roles that I pick and why I’m picking them,” he explained.

RELATED: Jake Gyllenhaal Confesses His Love For Sean Paul: ‘He Makes Every Song Better’

But he has grown from it, “And you’re bound to slip up and be like, ‘That wasn’t right for me,’ or ‘That didn’t fit perfectly.’ There have been a number of roles like that. And then a number of roles that do.”

“Spider-Man: Far From Home” hits big screens July 2.