In 1981 Bernie Sanders won the election to become Mayor of Burlington, Vermont, by ten votes

source