Bill Cosby was marched out of court in shackles on Tuesday, after a judge branded him a “predator” and sentenced him to between three and 10 years in prison for sexual assault, capping the downfall of the once-beloved comedian known as “America’s Dad.”

Cosby, 81, was found guilty in April of three counts of aggravated indecent assault for the drugging and sexual assault of his one-time friend Andrea Constand, a former Temple University administrator, at his Philadelphia home in 2004.

He is the first celebrity to be convicted of sexual abuse since the start of the #MeToo movement, the national reckoning with misconduct that has brought down dozens of powerful men in entertainment, politics and other fields.

Cosby must spend at least three years in a Pennsylvania prison before he becomes eligible for supervised release, though he could end up behind bars for up to a decade.

Montgomery County Court of Common Pleas Judge Steven O’Neill ordered Cosby to be jailed immediately, denying Cosby’s request for bail while lawyers appeal the conviction.

He was escorted out a back door of the courthouse with his hands and feet shackled and driven away in a black sport utility vehicle.

Minutes earlier, Constand left court with her arms folded, a smile spreading across her face as other women who have accused Cosby came to hug her.

O’Neill also fined Cosby $25 000 and ordered him to pay the costs of the prosecution. There was no visible reaction from the disgraced entertainer as he learned his fate.

Cosby cemented his family-friendly reputation playing the affable Dr. Cliff Huxtable in the 1980s television comedy “The Cosby Show.”

O’Neill also decided to designate Cosby a “sexually violent predator” under Pennsylvania law.

Cosby has denied any wrongdoing. Asked if he wanted to address the court with a statement before sentencing, Cosby declined through his lawyers. His lawyers had asked that Cosby be placed under house arrest, citing his age and frailty.

More than 50 women have accused Cosby of sexual abuse going back decades, with most complaints too old to prosecute. The Constand case was the only allegation that led to criminal charges.