Congressional candidate Ritchie Torres is demanding the resignation of the New York City police union president after he attacked the politician on social media last week.

Torres, who is slated to become the first openly gay Afro-Latinx lawmaker in Congress after winning the Democratic primary in June, was targeted on Friday by the Sergeants Benevolent Association (SBA) in a controversial tweet that has since been deleted.

The SBA referred to Torres as a hypocrite and “first-class whore” in the tweet, according to Them.

“Passes laws to defund police, supports criminals, & now because he’s running for office he blames the police to protect what he voted for,” the SBA tweeted.

The association also tweeted a picture of Torres being arrested at a 2017 protest against the Department of Housing and Urban Development. 

Torres hit back at the group.

"My message to the homophobes of @SBANYPD: I'm here. I'm queer. I'm not going anywhere. And whether you like it or not, I'm heading to the United States Congress," he tweeted. 

The Twitter assault came after Torres called for an investigation into the "slowdown" in policing as gun violence has surged in New York City over the summer.

“My position is that the increase in gun violence is best explained by the decrease in gun enforcement. The underpolicing in gun violence is putting communities like mine at risk. And as a policy maker, I have an obligation to speak out against it,” he said.

Torres said Tuesday that the SBA has evolved into a hate group while being masked as a labor union.

“Instead of responding with arguments,The Sergeant Benevolent Association descended to the level of personal insults and has become a poisonous organization in New York City politics,” the 32-year-old politician said.

He has also come out against SBA president Ed Mullins, alleging bigotry from the head of a union that supports 13,000 police officers. 

"The racism, misogyny, and homophobia of Ed Mullins gives @realDonaldTrump a run for his money,” Torres tweeted Friday.

In response to Torres calling for Mullins' resignation, the association released a statement on Tuesday denouncing Torres’ comments, blaming the 32-year-old for working against the law and demanding he resign instead.

“My comments about Councilman Torres had nothing to do with his race, ethnicity, or sexual orientation,” Mullins wrote. “My comments had everything to do with his dangerous policies and worldview. This city is burning and Councilman Torres wants to blame the police.”

On Wednesday, Torres said he represents the bright future of the country, while Mullins’ bigotry is a “racist relic of the past.”

The union president has a history of being a cyberbully and doxxing— the act of sharing someone's personal information online without their consent, according to the National Post. 

In June, Twitter temporarily suspended the SBA's account after posting the arrest record of the daughter of New York Mayor Bill de Blasio. The post included his daughter's address, driver's license information and government ID details. 

On May 13, a tweet from the SBA referred to city health commissioner Dr. Oxiris Barbot as a “b***h” for saying she wasn’t concerned with police receiving safety masks, the New York Post reports.

“Truth is this b***h has blood on her hands but why should anyone be surprised the NYPD has suffered under DeBlasio since he became Mayor,” the union’s account tweeted.