Democrat Victoria Kilpatrick has won her race for mayor of Sayreville by three votes after final count of provisional and vote-by-mail ballots.

Kilpatrick defeated Republican Arthur Rittenhouse by a vote of 3,629 to 3,626.

She will succeed Mayor Kennedy O’Brien, a Republican who has held the post for 20 years.

It’s not immediately clear if Rittenhouse will seek a recount.

Each party won one council seat.

Democrat Michele Maher, a recreation committee member whose grandmother drove a Sayreville school bus for 32 years, was the top vote-getter in the council race with 3,630 votes.

Republican Donna Roberts finished second, ousting incumbent David McGill by 32 votes, 3,597 to 3,565. Republican Christian Hibinski finished fourth with 3,435 votes.

Roberts will be the lone Republican on the six-member borough council.

After Kilpatrick takes office, Democrats will need to appoint a replacement to fill her council seat until the 2020 election.

At a screening committee in March, Klipatrick edged out the front-runner, council president Daniel Buchanan, in a vote of the local party organization.

Elections are often close in Sayreville, where Hillary Clinton outpolled Donald Trump by just 281 votes and where Phil Murphy won by 135. Republicans came within 163 votes of winning a council seat in 2017.

O’Brien, 66, ousted Democrat James Zagata after one term in 1999 by more than 1,800 votes (63%-37%).