The 2021 Buffalo mayoral election was held on November 2, 2021. Democratic Mayor Byron Brown won his fifth-term in office as a write-in candidate. Brown's victory marked the first time since 1985 that Buffalo did not elect the Democratic nominee for mayor. Brown's victory made him the longest serving Mayor of Buffalo once he began his fifth term on January 1, 2022, breaking the record held by James D. Griffin.