The campaign of New York City city council candidate Corey Johnson on Tuesday advanced, but Mel Wymore's bid came to an end.

Johnson secured 62.6 percent of the vote in Tuesday's Democratic primary. His closest competitor, Yvetta Kurland, came in with 37.4 percent.

“WE WON!! IT'S OVER!! THANK YOU ALL!” Johnson tweeted.

Johnson is running to represent Christine Quinn's former district, which includes much of Hell's Kitchen and Chelsea. He will face Republican Richard Stewart in November's general election.

Johnson, who is known for his gay rights activism, also came out HIV-positive in a May interview with The New York Times.

(Related: Christine Quinn concedes defeat in NYC mayoral race.)

The 51-year-old Wymore, the first openly transgender viable city council candidate, lost his city council Democratic primary to Helen Rosenthal.

“We didn't win the race, but something bigger because of all of you,” Wymore tweeted on Tuesday night. “Can't begin to express incredible privilege it was to have your support.”

Wymore, who has a long record of community involvement, grew up as Melanie Wymore in Tucson, Arizona, and worked for an aerospace company before settling down in New York and raising two children. At 35, Wymore came out lesbian, and a decade later transgender.