Kenneth Thompson won the Democratic nomination for Brooklyn district attorney on Tuesday, bringing an end to Charles Hynes' 23-year tenure as the borough's top prosecutor.
With 99 percent of precincts reporting early Wednesday morning, Thompson had 55 percent of the vote; Hynes trailed with 45 percent.
Thompson is a former federal prosecutor and civil rights attorney who is best known for representing the maid who accused Dominique Strauss-Kahn of sexual assault.
This is the first time an elected city district attorney has been voted from office since 1955.
In other races around the city, Councilwoman Letitia James and State Sen. Daniel Squadron are headed to a runoff in the race for public advocate after neither of them reached the 40 percent mark.
City Councilwoman Gale Brewer replaces Scott Stringer as Manhattan borough president, defeating Councilmembers Jessica Lappin and Robert Jackson in the race.
In Queens, former City Councilwoman Melinda Katz won the race for borough president, defeating City Councilman Peter Vallone Jr.