Harvey Weinstein — for decades considered one of Hollywood's most prominent and powerful producers — has been sentenced to 23 years in prison in his New York sexual assault trial.

The prison term handed down by New York Supreme Court Judge James Burke was slightly less than the maximum sentence of 29 years that Weinstein faced.

In an unexpected move, Weinstein spoke ahead of his sentencing, reportedly telling the court he had "deep remorse."

ADVERTISEMENT

But, in an apparent reference to the "Me Too" movement, he said, "I think men are confused about all of this ... this feeling of thousands of men and women who are losing due process."

"I’m worried about this country," Weinstein said, according to Variety. “This is not the right atmosphere in the United States of America."

Weinstein, 67, appeared in the New York courtroom after being convicted last month on two of five counts of sexual misconduct. While he was found guilty of a criminal sexual act and third-degree rape, he was acquitted on the most serious charges against him.

Weinstein had faced up to four years in prison on the rape charge, and between five and 25 years for the criminal sexual act charge.

“We thank the court for imposing a sentence that puts sexual predators and abusive partners in all segments of society on notice," Manhattan District Attorney Cy Vance said in a statement.

Weinstein's accusers, Vance said, "refused to be silent, and they were heard."

ADVERTISEMENT

"Their words took down a predator and put him behind bars, and gave hope to survivors of sexual violence all across the world," he said.

Donna Rotunno, Weinstein's attorney, said after the sentencing that she was "overcome with anger" at the term handed down.

"Mr. Weinstein never really had a fair shake from day one," Rotunno told reporters, saying his defense team planned to file an appeal.

The former film mogul's high-profile trial had been the subject of intense media coverage.

Jurors heard emotional testimony, including from actress Annabella Sciorra, who told the court that Weinstein raped her after shoving his way into her Manhattan apartment.

"Weinstein is a vicious, serial sexual predator who used his power to threaten, rape, assault, trick, humiliate and silence his victims," Vance had said in remarks following the verdict.

More than 80 women — including actresses Eva Green, Lupita Nyong'o and Uma Thurman — have accused Weinstein of sexual misconduct, ranging from harassment to rape.

Weinstein had maintained his innocence, saying all the encounters were consensual.

Sexual assault allegations against Weinstein in 2017 — and a flood of public allegations of sexual misconduct against many in the entertainment industry that followed — helped spur the "Me Too" and Time’s Up movements and shined a spotlight on systemic sexual harassment.

Following his conviction last month, Weinstein was hospitalized in New York after complaining of chest pains. He was later transferred to Rikers Island.

He also faces separate sexual assault charges in Los Angeles.

—Updated at 11:39 a.m.