BOSTON (CBS/AP) — Several cities held mayoral elections across Massachusetts Tuesday.

In Lynn, Mayor Judith Flanagan Kennedy was ousted.

READ MORE: Man Arrested After Armed Robbery At Haverhill Pot Shop

Kennedy was trying to fend off a challenge from state Sen. Thomas McGee, the co-chair of the Legislature’s Transportation Committee.

In Newton, Ruthanne Fuller will be the next mayor after narrowly defeating fellow city councilor Scott Lennon.

Fuller will succeed outgoing two-term Mayor Setti Warren, who is seeking the Democratic nomination for governor.

Unofficial returns showed Fuller winning the race by less than 400 votes out of more than 24,000 cast on Tuesday, after a hard-fought campaign waged in the Boston suburb.

READ MORE: Gov. Baker Proposes Waiving Massachusetts Sales Tax For All Of August And September

In Fuller’s acceptance speech she thanked those who had supported her then talked about the future.

“Together we can make our village centers more walkable and vibrant. Together we can make more housing affordable. Together we can make Newton greener,” said Fuller.

Attleboro’s mayor since 2004 Kevin Dumas lost to State Representative Paul Heroux.

MORE NEWS: Rep. Chris Pappas Mourns 15-Year-Old Nephew Who Drowned In Sebbins Pond In Bedford, NH

(© Copyright 2017 CBS Broadcasting Inc. All Rights Reserved. The Associated Press contributed to this report.)