(CNN) — In 1995, he was an undercover officer for the Boston Police when he was mistaken for a suspect and severely beaten by his own colleagues. Next month, Michael Cox will lead the force as the city’s new police commissioner.

Michael Cox, who has been named as the next Boston police commissioner, faces reporters during a news conference, Wednesday, July 13, 2022, in Boston’s Roxbury neighborhood. Cox, who was beaten more than 25 years ago by colleagues who mistook him for a suspect in a fatal shooting, served in multiple roles with the Boston Police Department before becoming the police chief in Ann Arbor, Michigan, in 2019. (AP Photo/Steven Senne)

READ MORE: Michigan Matters: Pistons’ Rob Murphy on Helping His Hometown

Making the announcement Wednesday, Mayor Michelle Wu spoke about Cox’s close links to Boston.

“Having grown up here, having served in all of the roles within the department and elsewhere, he is uniquely positioned to build the public safety infrastructure that Boston deserves and continue building on the community trust and community policing that our city has lead on for decades,” said Wu.

Cox, who left Boston in 2019 to become the chief of police in Ann Arbor, Michigan, called the appointment a “homecoming.”

He also echoed Mayor Wu’s vision for an emphasis on the relationship between the police department and the Boston community.

“The police department needs to look like the communities which we serve… so we can serve you better,” Cox said. “We’re going to re-emphasize and go back to some of our community policing basics that we’ve been very good at in the past and make sure we start to implement that again.”

READ MORE: Ribs RnB Music Festival Kicks Off This Weekend In Downtown Detroit

During his undercover work in 1995 for the gang unit, Cox, who is Black, was mistaken for a suspect by fellow Boston police officers and severely beaten.

He told WBZ-TV in an interview in 2020 that the police department tried to cover up what happened to him at the time. He ended up bringing a successful civil lawsuit against the department.

On Wednesday, Cox called that 1995 incident “unconstitutional policing no different, probably, than instances that have happened throughout the country to Black and Brown people in general.” He said he chose to stay in the police department after what happened “to make sure that kind of incident never happened again.”

And Boston officers are going to work hard to understand the people and communities they serve, Cox said.

“We’re going to get to know the cultures of all the people that we serve to make sure we had, we never make a mistake and confuse someone’s culture from behavior that’s considered criminal in some way, shape or form,” Cox said. “We need to understand the people that we police and the communities that we police. So we never have any unintended consequences.”

Cox will start as commissioner on August 15.

MORE NEWS: Judge Says Michigan Gov. Whitmer Won't Have To Testify In Abortion Lawsuit

The-CNN-Wire™ & © 2022 Cable News Network, Inc., a WarnerMedia Company. All rights reserved.