Richmond Vice Mayor Eduardo Martinez just got promoted.

Martinez beat three other candidates — including longtime councilmember Nat Bates — on Tuesday to replace Mayor Tom Butt, who was termed out after 27 years on the City Council.

Eduardo Martinez leads the race to become the next mayor of Richmond. (Courtesy photo)

Martinez finished with 36 percent of the vote, beating community organizer and organizational consultant Shawn Dunning, who finished with just more than 30 percent. Bates, the 91-year-old councilmember first elected in 1967, finished third with 29.5 percent. Conservative Mark Wassburg finished with 4.25 percent, according to unofficial election results.

Martinez is a member of the Richmond Progressive Alliance and a retired teacher who campaigned on rejecting corporate donations and having the support of city worker unions. He favors Richmond’s rent control and eviction laws and said he thinks big business should pay their fair share of taxes.

Martinez has voted to end coal transport through Richmond and clean up toxic waste at its shoreline. He voted to increase funding for the city’s Office of Neighborhood Safety and mental health interventions and has said Point Molate should be public open space.

There will still be a Butt on the City Council, as Tom’s son Andrew Butt beat Cesar Zepeda 53 percent to 47 percent for the District 2 seat. Butt is an architect and former city planning commissioner. Doria Robinson won the District 3 race, while Soheila Bana won the District 4 race, according to unofficial election results.