San Jose City Councilman Matt Mahan has won his bid to be the city’s next mayor.

Mahan’s opponent in last week’s election, Santa Clara County Supervisor Cindy Chavez, announced Wednesday she was conceding and wished him luck in leading the city.

“Although I will not be serving as your mayor over the next two years, I remain committed to the city I love,” Chavez wrote on social media. “As your county supervisor, I will continue to fight for our community.”

As of the latest results Thursday from the Santa Clara County Registrar of Voters, Mahan had 51.35 percent of the vote — 125,722 votes — compared to 48.65 percent or 119,102 votes for Chavez.

Mahan, who will take the place of Sam Liccardo as mayor of the Bay Area’s largest city, is a former tech executive who was first elected to the San Jose City Council in 2020 to represent southeastern parts of the city.

Mahan and Chavez had advanced to the Nov. 8 runoff election after receiving the two highest vote totals in the June primary, which also included councilmembers Dev Davis and Raul Peralez and retired San Jose Police Officer James Spence.