James Avery, the actor who played Uncle Phil on "The Fresh Prince of Bel Air," died on Tuesday, his publicist confirmed to ABC News.

The actor, 65, died from complications of open heart surgery.

Born James La Rue Avery in Virginia, Avery was raised in Atlantic City. After high school, he served in the Vietnam War from 1968 to 1969 as a member of the U.S. Navy. After returning home, Avery moved to San Diego, where he wrote poetry and TV scripts for PBS, including the Emmy Award-winning production, "Ameda Speaks: Poet James Avery."

However, Avery perhaps was most beloved for his acting. In addition to his most famous role on the sitcom "The Fresh Prince of Bel Air," he also lent his voice to several animated TV series, including "Teenage Mutant Ninja Turtles" and "Iron Man." He also appeared on the big screen in films including "Dr. Dolittle 2" and "License to Drive," and hosted the travel series "Going Places" on PBS. Most recently, Avery worked on Zach Braff's film, "Wish I Was Here," which will premiere at the Sundance film festival.