In a career that has spanned more than half a century, the legendary comedian has starred in such TV classics as "I Spy" and "The Cosby Show." But he's most famous for his stand-up routines.

In June 2017, Bill Cosby went on trial in Pennsylvania on sexual assault charges that he drugged and molested a former Temple University employee in 2004 at his home in suburban Philadelphia. More than 40 women have accused the entertainer of sexual assault.

Credit: EPA / TRACIE VAN AUKEN

Bill Cosby leaves the Montgomery County Courthouse in Norristown, Pa., on June 15, 2017.

Credit: AP / Mark Makela

Bill Cosby at the Montgomery County Courthouse during jury deliberations in his sexual assault trial in Norristown, Pa., June 14, 2017.

Credit: AP / Matt Rourke

Bill Cosby arrives for his sexual assault trial at the Montgomery County Courthouse in Norristown, Pa., June 9, 2017.

Credit: TNS / Cameron B. Pollack

Bill Cosby, right, speaks with comedian Lewis Dix at the Montgomery County Courthouse in Norristown, Pa., June 8, 2017.

Credit: Getty Images / Pool

Bill Cosby leaves the courtroom for a break in his trial on sexual assault charges at the Montgomery County Courthouse in Norristown, Pennsylvania, on Thursday, June 8, 2017.

Credit: TNS / Michael Bryant

Bill Cosby is escorted into the Montgomery County Courthouse with Keisha Knight Pulliam, who played his daughter, Rudy, on "The Cosby Show," on the first day of his trial, Monday, June 5, 2017, in Norristown, Pennsylvania.

Credit: Getty Images / Michael Bryant

Comedian Bill Cosby arrives at the Montgomery County Courthouse for a pretrial conference related to aggravated indecent assault charges on Sept. 6, 2016, in Norristown, Pa. Cosby is expected to face trial on charges stemming from an encounter with Andrea Constand in 2004.

Credit: AP / Matt Rourke

Bill Cosby arrives for a pretrial hearing in his sexual assault case at the Montgomery County Courthouse in Norristown, Pa., Tuesday, Sept. 6, 2016.

Credit: AP / Matt Rourke

Bill Cosby departs the Montgomery County Courthouse after a preliminary hearing, in Norristown, Pa., on May 24, 2016.

Credit: Getty Images / Kena Betancur

Bill Cosby leaves the courthouse in Elkins Park, Pennsylvania, on Wednesday, Dec. 30, 2015, after being arraigned on charges of aggravated indecent assault for an incident that took place in 2004. This is the first criminal charge filed against the actor after dozens of women claimed he abused them.

Credit: Getty Images / Kena Betancur

Bill Cosby arrives at the courthouse in Elkins Park, Pennsylvania, on Wednesday, Dec. 30, 2015, for his arraignment on charges of aggravated indecent assault for an incident that took place in 2004.

Credit: Getty Images, Montgomery County District Attorney's Office

Bill Cosby in a mugshot photo during his arraignment Wednesday, Dec. 30, 2015 in Elkins Park, Pennsylvania. Cosby was arraigned at 2:30 p.m. before Magisterial District Judge Elizabeth McHugh and charged with aggravated indecent assault. Bail was set at $1 million under the condition that he surrender his passport and have no contact with the victim. Cosby was released.after posting $100,000, the required 10 percent of bail.

Credit: AP

Bill Cosby and his wife, Camille, laugh as they tell a story about collecting one of the pieces in the upcoming exhibit, "Conversations: African and African-American Artworks in Dialogue," at the Smithsonian's National Museum of African Art, in Washington on Nov. 6, 2014.

Credit: AP / Todd Williamson

Bill Cosby attends the CASA/LA Evening to Foster Dreams Gala at the Beverly Hilton in Beverly Hills, Calif. on Tuesday, May 6, 2014.

Credit: Getty Images / Paul Morigi

Bill Cosby attends the Thurgood Marshall College Fund 25th Awards Gala in Washington on Nov. 11, 2013.

Credit: AP Photo/Matt Rourke, File

In this May 12, 2011 file photo, comedian Bill Cosby, a Temple University alumnus and trustee, appears at a commencement ceremony in Philadelphia.

Credit: Getty Images

Bill Cosby and Steve Harvey attend Screen Gems Presents The Steve & Marjorie Harvey Foundation Gala at Cipriani Wall Street in Manhattan. (May 14, 2012)

Credit: Getty Images

Comedian Bill Cosby promotes his new book "I Didn't Ask To Be Born: But I'm Glad I Was" at the Barnes & Noble on Fifth Avenue in Manhattan. (Nov. 2, 2011)

Credit: Getty Images

Bill Cosby speaks at The Film Society of Lincoln Center's presentation of the 38th annual Chaplin Award at Alice Tully Hall in Manhattan. (May 2, 2011)

Credit: PRN

Bill Cosby guest stars as the voice of superhero Captain Brainstorm in "Little Bill's Adventure with Captain Brainstorm," a special episode of Nick Jr.'s animated series "Little Bill."

Credit: AP

Bill Cosby poses with the Pasadena Christian School's Joyful Sounds children's choir in Pasadena, Calif. (Sept. 23, 2002)

Credit: AP / Matt Rourke

Bill Cosby appears at Temple University's commencement in Philadelphia on May 12, 2011. Temple University says Cosby remains a trustee of the Philadelphia institution despite renewed scrutiny of sexual assault allegations against him, in late 2014.

Credit: Getty Images / Bryan Bedder

Bill Cosby and Evin Cosby attends the launch of the pb&Caviar store on Aug. 7, 2008 in Manhattan.

Credit: AP / W.A. Harewood

Keynote speaker Bill Cosby and Spelman College President Dr. Beverly Tatum talk before the start of commencement at the school in Atlanta on May 14, 2006.

Credit: NBC

Bill Cosby known as Dr. Heathcliff 'Cliff' Huxtable on "The Cosby Show," played the father of five.

Credit: NBC

"The Cosby Show" was must-see TV on Thursday nights in the '80s. Bill Cosby, in T-shirt, with some of his TV clan, which included Phylicia Rashad, left, as wife Clair; Clarice Taylor as his mother; Earl Hyman as his father; Raven Symone, with hair ribbon, as Olivia; Keshia Knight Pullam as daughter Rudy; and Malcolm-Jamal Warner as son Theo.

Credit: AP

Bill Cosby and his wife, Camille, hit the red carpet at the Emmy Awards in Hollywood in 1965. The couple has been married for 50 years.

Credit: AP

Bill Cosby won the first of this three Emmy Awards for his work in "I Spy" in 1966. He was also the first African-American actor to win the award for a leading role in a television series.

Credit: AP

"Tonight Show" sidekick Ed McMahon joins Bill Cosby for a photo op in 1967.

Credit: AP

Bill Cosby and Leslie Uggums carry an ice-cream cart down the famed Spanish steps in the center of Rome while shooting an episode of "I Spy" in 1966. The series was one of the first to feature a black actor in a lead role.

Credit: AP

After his TV series "I Spy" wrapped in 1968, Bill Cosby did a weekday five-minute comedy radio show aimed at teenagers.

Credit: AP

Bill Cosby, singer Peggy Lee and songwriter Burt Bacharach had a big night at the Grammy Awards in 1970. Cosby, who has won nine Grammys over his career, won that night for his comedy album "Sports."

Credit: AP / Wally Fong

At a Hollywood restaurant in 1970, Cosby talked about the possibility of quitting show business to become a schoolteacher. Six years later, he received a doctorate in education from the University of Massachusetts Amherst.

Credit: AP

Bill Cosby got all suited up to host a variety hour called "The New Bill Cosby Show" in 1972. It got tackled in the ratings by "Monday Night Football" and lasted only one season.

Credit: AP / John Lent

Was it something he said? Bill Cosby got a laugh out of actress-singer Nina van Pallandt during a taping of "The Dick Cavett Show" in 1972.

Credit: AP

Coretta Scott King, widow of Martin Luther King, joined Bill Cosby and Sidney Poitier at the 1974 premiere of their movie, "Uptown Saturday Night."

Credit: AP / Lennox McLendon

Entertainer Sammy Davis Jr. shares a laugh with comedian Bill Cosby at a boxing match in Las Vegas in 1979.

Credit: AP

Bill Cosby and the Rev. Jesse Jackson participated in a radiothon for the National Rainbow Coalition in 1985 to raise money for civil rights causes.

Credit: NBC

Robert Culp as Kelly Robinson, Bill Cosby as Alexander Scott in "I Spy," which ran from 1965 to 1968.

Credit: AP

British tennis champ Virginia Wade jokes with Bill Cosby about his diamond-shaped racket during a celebrity match at the U.S. Open in 1985.

Top Stories