A convicted stalker has forged an unlikely social media bromance with a write-in candidate for Manhattan DA.

Long-shot challenger Marc Fliedner liked three tweets from John Rinaldi ​– who was convicted of harassing Brooke Shields in 2015 in a case prosecuted by the office of current DA Cy Vance Jr.

“Stop Prosecutorial Misconduct. DA MUST NOT enable ABUSERS. Ths Tues pls Write in @MarcForDA,” Rinaldi wrote, prompting support from Fliedner and actress Patricia Arquette who retweeted the message Nov. 5.

Rinaldi was found guilty at trial of stalking and harassing the “Suddenly Susan” star, showing up at her home with gifts for her children and at her Broadway shows.

The actress wept on the stand when she described Rinaldi’s nearly three decades of creepy and unwanted overtures at his 2015 trial. He was sentenced to 60 days in jail.

Rinaldi and Fliedner’s unlikely online alliance began Oct. 30. Fliedner tweeted that he quit the Brooklyn DA’s office “when equal justice was undermined.”

Rinaldi replied in a veiled reference to his own lurid legal case, “Can we stop Suborning Perjury too if elected??”

Fliedner answered: “For SURE.”

Vance is running unopposed for the Nov. 7 election. Fliedner joined the race as a write-in candidate after Vance came under fire for declining to prosecute movie mogul Harvey Weinstein for allegedly groping an Italian model.

Fliedner didn’t immediately return a request for comment.