Democrat Northam wins Virginia governor’s race

Democratic gubernatorial candidate Lt. Gov. Ralph Northam, right, and his wife, Pam, carry their ballots to the tally machine in Norfolk, Va.

Democratic gubernatorial candidate Lt. Gov. Ralph Northam, right, and his wife, Pam, carry their ballots to the tally machine in Norfolk, Va., Tuesday, Nov. 7, 2017. Northam faces Republican Ed Gillespie in today's election. (AP Photo/Steve Helber)

Democrat Ralph Northam has won Virginia’s race for governor.

Early unofficial results show Northam defeated Republican Ed Gillespie on Tuesday.

Virginia’s hard-fought race was closely watched as a swing-state test of President Donald Trump’s popularity. Northam, a pediatric neurologist and the state’s lieutenant governor, repeatedly tried to tie Gillespie to the president during months of divisive campaigning overshadowed by racial overtones and attack ads.

Northam’s victory was in large part due to a surge in anti-Trump energy since the president took office. Democrats said they had record levels of enthusiasm heading into the race.

Gillespie kept Trump at a distance throughout the campaign but tried to rally the president’s supporters with hard-edge ads focused on illegal immigration and preserving Confederate statues.

Want a digest of WHYY’s programs, events & stories? Sign up for our weekly newsletter.

It will take 126,000 members this year for great news and programs to thrive. Help us get to 100% of the goal.