Former representative Anthony Weiner (D-N.Y.) was sentenced Sept. 25 to 21 months in jail for transferring obscene material to a minor. (Peter Stevenson/The Washington Post)

This post, originally published in May, has been updated with news that Weiner has been sentenced to 21 months in jail for sexting with a minor.

He was a congressman, he was a sexter.

He was a mayoral candidate, he was a sexter.

He was the subject of a cringing documentary, he was a sexter.

He was ultimately the owner of a computer, seized by the FBI for sexting, that ended up playing a massive role in the 2016 presidential election. He was the husband of one of Hillary Clinton's trusted aides, and now he's about to be her ex-husband.

And now, Anthony Weiner will go to jail. He was sentenced to 21 months in prison Monday after pleading guilty in May to a single charge of sending obscene material to a minor, related a 15-year-old girl he'd been talking to online.

This is Weiner's story, and it's a sad one.

Since the New York Democratic congressman resigned in 2011, Weiner popped back into the public sphere like the creatures from one of those whack-a-mole games at the arcade, often when we'd least expect him. And each time, the political world couldn't look away. And each time, we felt something different about this man and his phone and his self-described addiction.

Weiner's story was first late-night-TV-worthy (a picture of his you-know-what out there on Twitter? And his last name is Weiner?!).

It morphed into a classic politician sex scandal, his devoted and poised wife standing next to him: “I have said that other texts and photos were likely to come out, and today they have,” he said in a 2013 news conference as new sexts emerged in the middle of his failed run for mayor of New York City. "… There is no question that what I did was wrong. This behavior is behind me.”

Then-New York mayoral candidate Anthony Weiner and his wife, Huma Abedin, at a 2013 news conference. (Eric Thayer/Reuters)

Then Weiner's story became a bloody car crash unfolding on our TV screens as “Weiner,” a May 2016 documentary about that mayoral run that immolated his higher-profile wife. Huma Abedin was in the middle of trying to hold together a presidential campaign for her longtime boss and friend, Hillary Clinton, and the documentary probing the rifts in her marriage was just plain weird.

“It was astonishing for Abedin to have allowed such a film as 'Weiner' to be made at all — much less to put a high-definition, close-up lens to the most humiliating chapter of her life,” wrote The Washington Post's Karen Tumulty.

Also, what about Weiner? “Why would Weiner want such a film out there? Is it a blind addiction to the spotlight? Some kind of twisted PR ploy? An effort to humanize himself?” I asked at the time.

Apparently Weiner got some kind of boost from it. He tried to bait Donald Trump Jr. into running against him for mayor of New York City.

Then, Weiner's story took its final, dark turn. A few months after the documentary was released, Weiner sexted again. This time with his toddler son in the bed next to him. Allegedly with a 15-year-old, who released the photos to a British tabloidDaily Mail reported that he'd been in a months-long online relationship with a 15-year-old girl.

By the next morning, Weiner had deleted his Twitter account. By that afternoon, Abedin announced that the two were separating.

This car crash wasn't satisfying to look at anymore. “Anthony Weiner is gross,” wrote Chris Cillizza at The Fix. “Let's stop paying attention to him.”

Talk turned to whether Weiner's sex scandals were psychosomatic.

“It's about people who use intense fantasy to escape,” Robert Weiss, a sex and tech addiction expert for Elements Behavioral Health addiction treatment centers, told The Fix, speaking about politicians who cheat in broad terms.

We desperately wanted to be done with Weiner. But Weiner wasn't done with us.

The FBI seized his computer to investigate whether he had sent inappropriate photos or videos to a minor. And on that computer, they found something else: emails Clinton sent and received using a private server while secretary of state.

Eleven days before the presidential election, Weiner's sexting turned into a political bomb for Democrats. Then-FBI Director James B. Comey told Congress the FBI had found new Clinton emails in an unrelated investigation.

“I can't consider for a second whose political fortunes will be affected in that way,” Comey would testify to Congress months later.

Clinton lost the election. She'd later come to the conclusion that Anthony Weiner's sexual desires — and the FBI's decision to tell Congress the world about her previously undiscovered secretary of state emails sitting on a server with Weiner's sexts — were a big reason she lost.

“When we heard this Huma looked stricken,” Clinton wrote in her new book “What Happened.” “Anthony had already caused so much heartache. And now this. ‘This man is going to be the death of me,’ [Huma] said, bursting into tears.”

Of course it was Weiner. It was inevitable that this guy we wanted nothing more of would play a starring role in one of the biggest news stories of one of the biggest presidential elections in recent memory.

Arguably, Weiner is STILL haunting us. Comey testified to Congress in May that Abedin had “forwarded hundreds and thousands” of Clinton emails to her husband, which is one reason the FBI director decided to alert Congress so close to the election. Turns out there were far fewer emails on Weiner's computer, the FBI announced several days later.

That evening, Trump fired Comey (although he didn't originally say it was because of Comey's misstatements, it was a good excuse to pull the trigger). And now Trump is living with the consequences of that decision, an investigation into whether he obstructed justice. Trump's problems, in a weird way, has its roots in one of the weirdest political stories of the social media age.

Weiner's modern political story is guffaw-worthy. Cynical. Just plain puzzling. Gross. Criminal. And somehow, influential.