A court in Pennsylvania has overturned Bill Cosby's conviction for sexual assault.
The 83-year-old has served more than two years of a 3-10 year sentence at a state prison.
An order's been made for the comedian to be released from prison.
The Supreme Court in Pennsylvania found a previous prosecutor had made a deal with Cosby not to charge him in connection with the allegations.
Cosby had vowed to serve all 10 years of his sentence rather than acknowledge any remorse over the 2004 encounter with accuser Andrea Constand.