Former United States Rep. Anthony Weiner rose to fame with an impassioned speech in Congress in 2010, only to be taken down by a scandal that involved "sexting" multiple women for years.
On Friday, the former New York Democratic congressman pleaded guilty in a federal courtroom in Manhattan to a single charge of transferring obscene material to a minor. A 15-year-old girl in North Carolina told the Daily Mail last September that she and Weiner exchanged explicit messages for months. She claimed that he asked her to film herself undressing at one point.
Weiner agreed to not appeal any sentence between 21 and 27 months in prison. He would also have to register as a sex offender.
From his start as a politician and marrying political staffer Huma Abedin, to the first reports of his "sexting" scandal, here's a look at Weiner's time in the spotlight.
Weiner and Abedin, who met in 2001, got married in New York. Former President Bill Clinton officiated the ceremony.
That same month, Weiner, who was a Democratic representative at the time, gave a moving speech on the House floor after a bill to provide aid to 9/11 emergency responders failed. Weiner gained notoriety and soon started becoming a known name in the political world.
The first photo of the scandal: a picture of Weiner in his boxer brief with a bulging crotch was posted on his Twitter account with about 40,000 followers. Weiner first claimed his Twitter was hacked.
Abedin was secretly pregnant with their son at the time.
Weiner held a tearful news conference on June 6, fessing up to the tweet.
"To be clear, the picture was of me, and I sent it," Weiner said.
Weiner announced he will be taking a leave of absence from Congress on June 11. A spokeswoman said Weiner was taking the time to "seek professional treatment to focus on becoming a better husband and healthier person."
Five days later, he officially resigned from Congress. He held a news conference in Brooklyn, New York and apologized for his actions and the embarrassment he may have caused.
Abedin gives birth to their son, Jordan Zain Weiner.
After being out of the public's eye for nearly two years, Weiner announced he is running for mayor of New York City. In the video announcement, Weiner, Abedin and their son appear to be a happy family, putting the scandal behind them.
"Look, I’ve made some big mistakes and I know I’ve let a lot of people down," Weiner said in the video.
"I'm running for mayor because I've been fighting for the middle class and those struggling to make it for my entire life. And I hope I get a second chance to work for you," he added.
"We love this city," Abedin said. "And no one will work harder to make it better than Anthony."
A website published screenshots of alleged conversations that contained explicit photos between Weiner and another woman that previously happened.
Weiner, with Abedin by his side, held a news conference on July 23 where he admitted to the sexting. Despite the revelation, Abedin stood by her husband's side.
"What I want to say is I love him, I have forgiven him, I believe in him, and as I have said from the beginning, we are moving forward," Abedin said.
Weiner lost the mayoral primary, landing in fifth place. Bill de Blasio went on to win the Democratic nomination and the election.
The documentary "Weiner" opened in theaters. The film documents Weiner's rollercoaster career in politics and highlighted the scandal. Abedin, at the time, was one of Hillary Clinton's top campaign aides for the 2016 presidential election.
The New York Post published a story about more explicit texts the disgraced politician sent starting in 2015. One of the photos showed Weiner, in his boxer briefs, in bed with his toddler son by his side.
The next day, Abedin announced the couple is separating.
"After a long and painful consideration and work on my marriage, I have made the decision to separate from my husband," Abedin said in a statement.
The Federal Bureau of Investigation and the New York Police department announced they are opening an investigation into Weiner after a 15-year-old girl told the Daily Mail the former politician sent her lewd messages starting on January 2016. The exchange continued for months.
The FBI said it was reopening its investigation into the private email server of then Democratic presidential candidate Hillary Clinton. The FBI discovered the emails while looking into Weiner's laptop during the investigation into the sexting case.
Weiner appeared in federal court in Manhattan on May 19 and pleaded guilty to a charge of transmitting sexual material to a minor.
"I have a sickness, but I do not have an excuse," Weiner tearfully said during his apology in court.
The judge told him he would have to register as a sex offender. Weiner agreed to not appeal any sentence between 21 and 27 months in prison.
On the same day, Abedin reportedly filed for divorce, nine months after announcing their separation.
The Associated Press contributed to this report.