On behalf of my family and campaign team, thank you for all you’ve done for this campaign. —PM pic.twitter.com/3Z9Qpb1qjN

— Phil Murphy (@PhilMurphyNJ) November 8, 2017

The Virginia race, in particular, took on the air of a referendum on Trump throughout the campaign. The commonwealth's status as a swing state in presidential years and the stark divide between its suburban northern region and rural Appalachian southwest turned it into a representative test case on the country's response to the two major political parties a year after electing the former real estate mogul.

Though Trump had not personally campaigned for the Republican in Virginia, Northam’s campaign attempted to tie the president to Gillespie, banking on Trump’s unpopularity in the commonwealth to help secure the fourth gubernatorial victory for Democrats in the past five Virginia races.

\"It was said that the eyes of the nation are now on the commonwealth,\" said Northam in his victory speech Tuesday evening. \"Today, Virginians have answered and have spoken.\"

Northam continued by pledging to \"put the people of Virginia before politics, before party and before ideology,\" and by noting the increasing diversity of the U.S. and of the commonwealth. He said that his administration will endeavor to make Virginia as welcoming a place as possible.

\"Our lights will be on, our doors will be open,\" he said.

Trump reacted to the result in Virginia via Twitter from South Korea, where he is in the midst of a 13-day trip, writing that \"Gillespie worked hard but did not embrace me or what I stand for.\"

Ed Gillespie worked hard but did not embrace me or what I stand for. Don’t forget, Republicans won 4 out of 4 House seats, and with the economy doing record numbers, we will continue to win, even bigger than before!

— Donald J. Trump (@realDonaldTrump) November 8, 2017

Trump’s firebrand former chief strategist Steve Bannon -- who had stumped for successful Alabama Republican primary candidate Roy Moore in September -- offered to rally for Gillespie on multiple occasions but the campaign rejected his offer, according to two sources close to Bannon.

Breitbart, the ultra-conservative website that Bannon helped found, published stories supportive of Gillespie, which political observers saw as a sign of Bannon’s interest in the campaign. But two sources close to Bannon said he was always skeptical of Gillespie’s commitment to the Trump agenda which only started to play up in the final weeks of the campaign.

Bannon made it known that he was concerned about Gillespie’s lack of energy and his close association with George W. Bush via his service as a White House adviser.

“Ed Gillespie had no coherent message, was inauthentic, spoke from both sides of his mouth and at the end of the day, even the deplorables couldn’t save him,” Andy Surabian, former Trump White House staffer and political adviser to Bannon, told ABC News.

A Gillespie spokesperson did not immediately respond to a request for comment.

\"PHOTO:
Washington Post via AP, FILE
PHOTO: In this Sept. 19, 2017, file photo, Gubernatorial candidates Republican Ed Gillespie, left, and Democrat Lt. Gov. Ralph Northam debate in McLean, Va.
>

In New Jersey, sweeping backlash to the deeply unpopular Gov. Chris Christie became the driving force behind Murphy's election campaign. The former ambassador's first run for elected office found him tying Christie to his lieutenant governor, Guadagno, but in his victory speech, he pledged that \"the days of division are over.\"

\"Starting here, and starting with us, New Jersey is coming back,\" Murphy said, before pledging to put together a diverse administration that reflects the population of the state.

\"We will rebuild our state from the bottom up, and from the middle out,\" he added.

The New Jersey election was dominated by talk of the governor, who is among the least popular in U.S. history, based on polls of his job approval. Murphy had argued that a Guadagno governorship would represent a continuation of Christie’s tenure, while Guadagno pointed to moments of disagreement with her boss to attempt to distance herself from the two-term governor and former Republican presidential primary candidate.

Trump was notably quiet on the race in the traditionally blue state where Murphy led Guadagno by consistent double-digit margins in polls ranging back to the spring. Recent polls showed the Democrat with a lead of between 10 to 15 points.

Surveys of Virginia voters showed a markedly closer race, with Northam out-polling Gillespie by as many as 9 percentage points in one poll, while falling within the margin of error in another.

ABC News' Tara Palmeri contributed to this report.

Look back at updates from earlier in the day below:

","canonicalUrl":"https://abcnews.com/Politics/democrats-win-governors-races-virginia-jersey-push-back/story?id=50981062","legacySlug":"/news/story/democrats-win-governors-races-virginia-jersey-push-back-50981062","noIndexNoFollow":false},"publishTime":"04:39","publishDate":"11-08-2017","updatedTime":"05:10","updatedDate":"11-08-2017","socialImage":{"alt":"Democratic gubernatorial candidate, Lt. Gov. Ralph Northam, Sept. 18, 2017. | Democratic gubernatorial candidate Phil Murphy, Monday, Nov. 6, 2017.","credit":"AP","ratio":"16x9","url":"https://s.abcnews.com/images/Politics/ralph-northam-phil-murphy-democratic-governor-race-ap-mt-171107_16x9_1600.jpg","width":992,"height":558},"datePublished":"11/8/2017 04:39:00 GMT","video":{"live":false,"id":50981062,"headline":"Democrats win VA, NJ races","mediaAssetTitle":"KELSEY_Virginia_NewJersey_LiveUpdates_20171107","description":"Phil Murphy and Ralph Northam are the projected winners in N.J. and Virginia.","duration":"14:27","posterImg":{"url":"https://s.abcnews.com/images/GMA/default-img-undefined.png","width":608,"height":342},"video":{"feed":"https://service-pkgabcnews.akamaized.net/opp/hls/abcnews/2017/11/171107_gostream_northham_,500,800,1200,1800,2500,3200,4500,.mp4.csmil/playlist.m3u8"},"playlist":["50993338","51001508","51001117"]},"relatedItems":[{"contentType":"story","date":"November 8, 2017","headline":"Concern about health care boosts Northam, corruption a top issue for NJ voters: polls","section":"news","slug":"/news/story/virginia-jersey-exit-poll-analysis-50993338","id":50993338,"image":{"alt":"Concern about health care boosts Northam, corruption a top issue for NJ voters: polls","url":"https://s.abcnews.com/images/Politics/gty-voting-mt-170704_4x3t_240.jpg","credit":"Brianna Soukup/Portland Press Herald via Getty Images","ratio":"1x1"}},{"contentType":"video","date":"November 8, 2017","headline":"Ralph Northam defeats Ed Gillespie for VA Governor Race","section":"news","slug":"/video/51001508","id":51001508,"image":{"alt":"Ralph Northam defeats Ed Gillespie for VA Governor Race","url":"https://s.abcnews.com/images/Politics/171107_gostream_northham_4x5_240.jpg","credit":"ABCNews.com","ratio":"1x1"}},{"contentType":"video","date":"November 8, 2017","headline":"Phil Murphy projected winner in NJ governor's race","section":"news","slug":"/video/51001117","id":51001117,"image":{"alt":"Phil Murphy projected winner in NJ governor's race","url":"https://s.abcnews.com/images/Politics/171107_gostream_murphy_4x5_240.jpg","credit":"ABCNews.com","ratio":"1x1"}}],"relatedContentSection":"news","schemaContent":{"name":"Democrats win VA, NJ races","description":"Phil Murphy and Ralph Northam are the projected winners in N.J. and Virginia.","duration":"14:27","uploadDate":"11-08-2017","publication":"11-08-2017","images":"https://s.abcnews.com/images/GMA/default-img-undefined.png","url":"https://service-pkgabcnews.akamaized.net/opp/hls/abcnews/2017/11/171107_gostream_northham_,500,800,1200,1800,2500,3200,4500,.mp4.csmil/playlist.m3u8","contentUrl":"https://service-pkgabcnews.akamaized.net/opp/hls/abcnews/2017/11/171107_gostream_northham_,500,800,1200,1800,2500,3200,4500,.mp4.csmil/playlist.m3u8","link":"https://www.goodmorningamerica.com/news/story/democrats-win-governors-races-virginia-jersey-push-back-50981062"}},"playlist":[{"id":"132281378","contentType":"story","section":"news"},{"id":"132283010","contentType":"story","section":"news"},{"id":"132273278","contentType":"story","section":"news"},{"id":"132231169","contentType":"story","section":"news"},{"id":"132206748","contentType":"story","section":"news"},{"id":"132200241","contentType":"story","section":"news"},{"id":"132054443","contentType":"story","section":"news"},{"id":"132054798","contentType":"story","section":"news"},{"id":"132033010","contentType":"story","section":"news"},{"id":"131912713","contentType":"story","section":"news"},{"id":"131830583","contentType":"story","section":"news"},{"id":"131834976","contentType":"story","section":"news"},{"id":"131554765","contentType":"story","section":"news"},{"id":"131554815","contentType":"story","section":"news"},{"id":"131543053","contentType":"story","section":"news"},{"id":"131432442","contentType":"story","section":"news"},{"id":"131121474","contentType":"story","section":"news"},{"id":"131247079","contentType":"story","section":"news"},{"id":"131228784","contentType":"story","section":"news"},{"id":"131178806","contentType":"story","section":"news"}],"kvps":{"pgtyp":"article","lang":"en","sp":"goodmorningamerica","programmatic":"true","bundleId":"com.abcnews"}},"analytics":{"accountID":"wdgnewwdgnewgmaweb","ns":"gma","pageName":"gma:news:video","pageType":"video","globalSpecVersion":"v1.08","siteDifferentiator":"gma:site","tagID":"g_page01","userABCookie":"0","section":"news","title":"Democrats win VA, NJ races","pubTime":"23:39","pubDate":"11-07-2017","modTime":"00:10","modDate":"11-08-2017","taxonomyTags":"none","id":50981062,"editorialOtherSubjects":"","wordCount":"none","columns":"none","authors":"","authorsUnit":"none","authorsBureau":"none","subBrand":"Good Morning America","provider":"Good Morning America","videoName":"Democrats win VA, NJ races","mediaAssetTitle":"KELSEY_Virginia_NewJersey_LiveUpdates_20171107","videoId":50981062,"mediaOnPage":"video","legacySlug":"/news/story/democrats-win-governors-races-virginia-jersey-push-back-50981062"},"taboola":{}},"request":{"headers":{},"httpVersion":"1.1","method":"GET","url":"/video/50981062","vary":{"host":"www.goodmorningamerica.com","cached":true,"path":"/video/50981062","forwarded-proto":"https","device":"desktop","userab":"0"}},"viewport":{"width":1260,"height":0},"user":{}};