The new mayor won by a single vote after a former Liberal councillor voted to support him.