ALBANY, N.Y. — In an election in which many races went to Democrats, voters in Syracuse broke with both parties and elected an independent as mayor.

Ben Walsh captured 54 percent of the vote in Tuesday’s four-way race. The 38-year-old has worked in community development and is the son of former Republican congressman Jim Walsh.

The mayor-elect says he’s never affiliated with either party and wants to bring a consensus-building approach to governing.

In other races, Republican Westchester County Executive Rob Astorino was defeated by Democratic state Sen. George Latimer. Astorino, the 2014 GOP gubernatorial nominee, was considered a possible challenger to Democratic Gov. Andrew Cuomo next year.

New York City Mayor Bill de Blasio and the Democratic mayors of Albany, Rochester and Buffalo were re-elected.

Voters rejected calls for a constitutional convention.