Former Rep. Anthony Weiner (D-N.Y.) will be released from federal prison early because of "good conduct," a spokesperson for the Bureau of Prisons confirmed to The Hill Tuesday.

Weiner was sentenced to 21 months in prison last year for sending sexually explicit material to a 15-year old minor. He is now scheduled to be released on May 14, 2019 because of "good conduct time earned." He was initially scheduled to be released in Aug. 2019.

Weiner resigned from Congress in 2011 after a lewd photo of him emerged on the internet.

During an unsuccessful bid for New York City mayor in 2013, Weiner admitted to sending sexual photographs under the online pseudonym "Carlos Danger."

In September 2016, the Daily Mail reported that a 15-year old said she had received lewd messages from Weiner.

He pleaded guilty to one count of sending obscene photos to a minor in May 2017.