Anthony Weiner just doesn’t know when to let go — of politics, that is.

The sext-sending former Congressman said Tuesday he would come out of retirement and once again run for New York City mayor, but on one condition: there’s gotta be a Trump on the ticket.

The 51-year-old made the claim as Donald Trump Jr. said he might consider entering politics in 2017 with a run for City Hall.

“I would come out of retirement just to beat him like a rented mule and then I’d turn the keys back over to de Blasio,” Weiner told FOX 5 on the floor of the Democratic National Convention.

His comments sparked a stiff response from the younger Trump on Twitter, who noted Weiner’s infamous sexting scandal with a pun of his own.

“Too soon Anthony!!! You probably shouldn’t be talking about beating anything ever again. Go back to your cave,” Trump Jr. wrote.

Weiner, who famously lost the Democratic primary of the New York City’s mayoral race in 2013 after being caught up in two sex scandals, has yet to respond.

His claim that he would run for mayor in 2017 comes two years after the scandal-scarred congressman told Politico that his political career was “probably over” — and that he planned to remain in the business world, while also making public appearances with his wife and longtime Hillary Clinton aide, Huma Abedin.

Trump Jr., meanwhile, has refused to rule out a run for mayor — saying he’d “love to” make New York City great again once he’s done helping his father win the White House.

“As my father has always said, I want to — we always like to keep our options open,” the 38-year-old told CNN over the weekend. “So if I can do that as a service to our country I’d love to do it.”

But when asked about Trump Jr.’s political prospects on Tuesday, his father insisted that he had no plans of running.

“Donald Trump Jr. has no intention of running for mayor of New York, but I was the one who predicted Anthony Weiner would flame out and not be able to run for mayor,” Trump told FOX 5. “People were amazed at how insightful I was.”

Weiner has been struggling to remain relevant since being laughed out of the mayoral race in 2013.

Earlier this year, a documentary about his sex scandals and train wreck of a campaign — naturally titled “Weiner” — was released at Sundance.

The disgraced pol most recently appeared on The Late Show With Stephen Colbert on Monday night following Day 1 of the Democratic convention, where his wife is working. But instead of welcoming Weiner with open arms, the hometown crowd showered him with boos — after he accused Colbert and the “mainstream media” of helping Trump gain steam during the primaries.

“It’s because of you in the mainstream media that give him so much oxygen,” Weiner seethed, pointing a finger at Colbert.

But while the audience booed, the host took the remark as a compliment.

“Really? I’m mainstream media? Thank you, I’ll take that as a compliment,” Colbert said. “I made it! I’m mainstream!”