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.