Transcript for Voters send message to Trump as Democrats win several key races
President trump may be thousands of miles away, but he was watching two key races overnight. Two races for governor. In both cases, the Democrats won, and tonight, our new insight, new reporting here, into what drove voters to the polls. Was this a referendum for some on the trump presidency? Here's ABC's Mary Bruce. Reporter: Less than 30 minutes after Virginia voters delivered president trump a resounding rebuke, the president took to Twitter, declaring the Republican's defeat had nothing to do with him. Instead, he blamed the candidate, Ed Gillespie, tweef. A complete 180. Trump had urged supporters to back Gillespie. With your help, Ed Gillis bee will help make America great again. Reporter: One-third of Virginia voters say they cast their ballot to protest the president. Virginia has told us to end the divisiveness that we will not condone. Hatred and bigotry. Reporter: The Republican Gillespie closed out the campaign, hitting classic trump themes, on everything from immigration to confederate statues, but the biggest issue for voters? Health care. Democrats also won the governor's race in New Jersey. The winner, Phil Murphy, literally jumping for joy. And one year after losing to trump, Hillary Clinton responded to the Democrat wins with one word. "Yes." Mary Bruce with us live tonight from capitol hill. And Mary, Democrats are hopeful tonight that any momentum they saw overnight will last through the midterms? Reporter: David, after last night, Democrats are now dreaming of a wave in the midterms. Nancy Pelosi today said the door is certainly open. But the president, well, he seeps it differently. He insists Republicans lost because they did not embrace him and what he stands for.
This transcript has been automatically generated and may not be 100% accurate.