CNN  — 

Democrat Eric Adams has been elected the 110th mayor of New York City, CNN projects, defeating Republican nominee Curtis Sliwa.

Adams, a retired New York Police Department captain who embraced a public safety message, will be the second Black mayor in the city’s history, after the late David Dinkins.

“I wanted people to know my story, being a dishwasher, having a learning disability, being arrested as a child, going to school at night, working in a mail room. That was the story I wanted to send New Yorkers, and they felt me. And because of that, I’m now going to be the mayor of one of the greatest cities on the globe,” the mayor-elect told CNN’s John Berman on “New Day” Wednesday.

A Brooklyn native who currently serves as its borough president, Adams won a chaotic Democratic primary this summer on a promise to both beef up and reform the NYPD amid worries over a rise in violent crime. His message – that “public safety is the prerequisite to prosperity” – resonated with working class Democratic voters outside the traditionally liberal enclaves of Manhattan and parts of Brooklyn, which fueled his nomination.

“The foundation is safety. We can talk about all the other pieces, but we have to be safe. If we’re not safe, tourism is not going to return,” Adams told CNN’s Gloria Borger ahead of the election. “No business is going to stay if their employees can’t ride our subway systems to get to their office space.”

Adams’ general election campaign was much more subdued. He largely ignored Sliwa, a founder of the Guardian Angels and media personality.

After Sliwa attacked him during one of their two debates, Adams shrugged and refused to engage.

“I’m speaking to New Yorkers,” he said, “not buffoonery.”

A former state lawmaker, Adams rose to the top of the Democratic mayoral field with a clear pitch to voters anxious over a pandemic-year surge in violent crime and persistent concerns over NYPD abuses, arguing that he is uniquely positioned to address both concerns.

Adams said he and his brother were arrested for criminal trespass into the home of a go-go dancer in 1975, and the experience stuck with him. “They took us downstairs to the lower level and they kicked us repeatedly in our groin,” said Adams, who joined the NYPD with a mission to reform the force.

“Well, you start to make sure you hit reset with the police department,” he said. “You go to the precincts, talk to my officers and let them know, ‘I have your backs. I’m going to be there for you. … But darn it…if you don’t understand the nobility of public protection, you can’t serve in my department,’” Adams told Borger.

That effort required he strike a careful balance in pledging to deal with police misconduct, often noting his past efforts to call out racism within the NYPD, as well as his testimony in the court case that ended the unlawful use of “stop and frisk” policies. (Adams says the tactic should be used, but under lawful guidelines.) He has also argued that the current debate over policing has presented a false choice, rejecting both the law-and-order rhetoric favored by many on the right, while denouncing left-wing activists’ calls to “defund” or more fundamentally reform the police.

“I’m evolving as a man. I’m evolving as a dad. I’m going to evolve if I’m the mayor of New York,” he told Borger, noting that he has a personal anthem he always returns to when times get tough. “Whenever I’m feeling as though I hit an obstacle, I throw on ‘My Way,” he said, referring to the Frank Sinatra song.

Besides running on a public safety message, he has also called for making school lunches healthier.

“I’m going to be a broccoli mayor,” added Adams, who went vegan after being diagnosed with diabetes. “You’re not going to like it when you eat it, but long term, you’re going to see the benefits of it.”

This story has been updated with comments from Adams.

CNN’s Maeve Reston and Veronica Stracqualursi contributed to this report.