Anthony Weiner has been sentenced to 21 months in federal prison for sending texts that asked a teen he met online to strip and “touch herself.”

The disgraced ex-congressman was also sentenced Monday to three years of supervised release in Manhattan federal court, where his attorneys had pushed for probation for sexting with the 15-year-old North Carolina girl.

“The crime I committed was my rock bottom," Weiner tearfully said as he read from a prepared statement. "But I am truly grateful that it began me on my recovery. I am profoundly sorry to the victim for my crime... The prosecutors are skeptical. I don’t blame them.

In 2013, Weiner attempted a political comeback as he ran for mayor of New York City. But those hopes were dashed when a woman named Sydney Leathers came forward with their online escapades.

Then in August 2016, Weiner was accused of sending salacious texts as his then 4-month-old son slept beside him.

He pleaded guilty in May 2017 to transferring obscene material to a minor and could have faced up to 10 years in prison.

Weiner’s lawyers, seeking a reduced sentence, argued that their client suffered from an addiction, for which he finally was seeking treatment.

Judge Denise Cote reportedly acknowledged that Weiner had made progress in addressing his issues, saying on Monday: "I find it likely that if he continues to engage in this treatment, he can make an enormous contribution to society."

Weiner must surrender himself by 2 p.m. on Nov. 6 to begin his 21-month-long prison sentence.

His attorneys have requested he be sent to Schuylkill Federal Correctional Facility in Pennsylvania, or another low-security prison near New York, according to reports.

Huma Abedin, a longtime aide to Hilary Clinton Weiner’s wife, did not appear in court. The pair is in the process of divorcing.