Title: 2017 Boston mayoral election
Content:  The Boston mayoral election of 2017 was held on Tuesday, November 7, 2017, to elect the mayor of Boston, Massachusetts. Incumbent Democratic mayor Marty J. Walsh won re-election to a second term, defeating District 7 City Councilor Tito Jackson, and two long-shot candidates, Robert Cappucci and Joseph Wiley. A non-partisan preliminary election was held on Tuesday, September 26, 2017, with Walsh and Jackson advancing into a November runoff election. In the November election, Walsh secured a landslide victory, winning by a two-to-one margin. A total of 109,034 of the city's approximately 392,000 registered voters cast a ballot in the November election. The voter turnout of 27.80% was down ten percentage points from the 2013 mayoral election, which generated more excitement as the first Boston mayoral race in a generation without an incumbent.
Title: 2021 Boston mayoral election
Content:  The 2021 Boston mayoral election was held on Tuesday, November 2, 2021, to elect the mayor of Boston, Massachusetts. Incumbent mayor Marty Walsh was eligible to seek a third term. However, he resigned as mayor on March 22, 2021 after being confirmed as Secretary of Labor in the Cabinet of Joe Biden. Since more than two candidates qualified for the ballot, a non-partisan preliminary election was held on September 14 in order to determine which two candidates would advance to the general election. On the morning of September 15, the counting of ballots reached 100% reporting with Michelle Wu as the first-place winner and Annissa Essaibi George in a second place. As the two top vote-getters, they advanced to face each other in the general election. Wu won the general election on November 2 by 28 points, with her victory making her the first woman and first person of color to be elected as Mayor of Boston.
Title: 1997 Boston mayoral election
Content:  The Boston mayoral election of 1997 occurred on Tuesday, November 4, 1997. Incumbent Thomas Menino ran unopposed, and was re-elected to his second term; he received 71 percent of the vote. This was the first time an incumbent Mayor of Boston faced no opposition in a general election. Ahead of the election, four little-known individuals had declared their candidacy for mayor. None managed to collect the 3,000 valid signatures needed to qualify for the ballot, leaving Menino without an opponent on the ballot.
Title: 2009 Boston mayoral election
Content:  The 2009 Boston mayoral election occurred on Tuesday, November 3, 2009, between incumbent Mayor of Boston Thomas Menino, and Michael F. Flaherty, member of the Boston City Council and former Council president. Menino was re-elected to a fifth term, the first mayor to do so in Boston history. A nonpartisan municipal preliminary election was held on September 22, 2009, where Flaherty and Menino advanced to the general election. 31% of registered voters turned out to vote in the election.
Title: Mayor of Boston
Content:   The mayor of Boston is the head of the municipal government in Boston, Massachusetts. Boston has a mayor-council system of government. Boston's mayoral elections are non-partisan (as are all municipal elections in Boston), and elect a mayor to a four-year term; there are no term limits. The mayor's office is in Boston City Hall, in Government Center. The current mayor as of November 16, 2021 is Michelle Wu. There are two living former mayors including Marty Walsh who served from 2014 to 2021, and Raymond Flynn, who served in the role during 1984–1993. The most recent mayor to die was Thomas Menino, on October 30, 2014.
Title: 2013 Boston mayoral election
Content:  The 2013 Boston mayoral election occurred on Tuesday, November 5, 2013. Incumbent mayor Thomas Menino had declined to run for re-election to a sixth term. A non-partisan preliminary election was held on Tuesday, September 24, 2013. 12 candidates made the ballot to replace Menino, with state representative Marty Walsh and city councilor John R. Connolly advancing to the general election. Walsh was elected to his first term, defeating Connolly by 3% of the vote, and was inaugurated on Monday, January 6, 2014. 38% of registered voters turned out to vote in the election.
Title: 2001 Boston mayoral election
Content:  The Boston mayoral election of 2001 occurred on Tuesday, November 6, 2001, between incumbent mayor Thomas Menino and City Councilor Peggy Davis-Mullen. Menino was re-elected to a third term. The nonpartisan municipal preliminary election was held on September 25, 2001. Davis-Mullen, by finishing second, became the second woman to be a finalist for mayor in city history.
Title: 2019 Boston City Council election
Content:  The top two vote-getters in the preliminary election qualified for the general election. Nassour sought to become the first self-identified (as Boston municipal elections are non-partisan) Republican elected to the City Council since John W. Sears in November 1979.
Title: 2005 Boston mayoral election
Content:  The 2005 Boston mayoral election occurred on Tuesday, November 8, 2005, between incumbent mayor Thomas Menino and City Councilor Maura Hennigan. Menino was re-elected to a fourth term. As Menino and Hennigan were the only two candidates, no preliminary election was held. 36% of registered voters turned out to vote in the election.
Title: 2021 Boston City Council election
Content:  Marty Walsh was elected to the mayoralty of Boston, Massachusetts, in the 2013 and 2017 elections. On January 7, 2021, President-elect Joe Biden announced that he would select Walsh to serve as the United States Secretary of Labor. Walsh resigned as mayor on March 22, after being confirmed as Secretary of Labor, and was replaced as acting-mayor by Kim Janey, who also served as president of the Boston City Council. The city council voted to move the primary election date from September 21, to September 14, in order to allow for another week mail-in voting ballots to be distributed for the general election and was approved by Mayor Janey.

Question: who won the election for mayor in boston?
Answer: Marty J. Walsh.
Marty Walsh.