Disgraced former congressman Rep. Anthony Weiner (D-N.Y.) will plead guilty to one count of transferring obscene material to a minor on Friday.

Weiner, who reportedly surrendered himself to FBI custody on Friday morning, will make the plea as part of deal with the Manhattan U.S. attorney that will end the ongoing inquiry into his sexting activities with an underage girl.

The investigation and Weiner’s resulting plea are the result of a sexting scandal that erupted in September of 2016 when it was reported that Weiner, who used the name Carlos Danger online, had knowingly and willingly engaged in an explicit sexting relationship with a 15-year-old girl. It was his third — and most damning — sexting scandal.

[lz_related_box id=”289106″]

The report came only a month after a Weiner and his wife, Huma Abedin, announced their separation following early reports of the third sexting scandal, but made no mention of the age of Weiner’s sexting partner. In one particularly disturbing photo that Weiner sent to the teenaged girl, his young son was been lying in bed with him.

Weiner’s first texting scandal, in 2011, cost him his seat in Congress. Weiner was forced to resign after mistakenly posting an explicit photo of himself to Twitter. In 2013, Weiner attempted to resurrect his career and ran for mayor of New York City. That campaign collapsed completely following revelations of another sexting relationship.