Democrats have won control of all of Richmond.

In a major victory for the party, Democrats in Virginia on Tuesday flipped both the state Senate and the House of Delegates, giving them control of both the governor’s office and the legislature for the first time in more than two decades, The Associated Press projected.

"We did it," tweeted former Democratic Gov. Terry McAuliffe. "We got them both. Hard work pays off. VA is ALL BLUE!"

Ahead of Tuesday’s vote, Republicans had a slim majority in both the state House and Senate, but Virginia has been trending blue for years thanks to growth in more diverse, liberal suburbs and cities, and population declines in more rural, conservative areas.

Gov. Ralph Northam, a Democrat, was not up for reelection Tuesday but actively campaigned for Democrats in his state, after surviving the blackface scandal earlier this year.

"I'm here to officially declare today, November 5, 2019, that Virginia is officially blue," Northam told a crowd of supporters in Richmond.

Democrats have promised that, with control of the state legislature, they could pass an agenda that Republicans have blocked for years, including stricter gun laws and a higher minimum wage. They also have aimed to ratify the Equal Rights Amendment, making Virginia the final state needed for possible passage of the gender-equality measure.

Also in Virginia on Tuesday, Juli Briskman, the female cyclist who flipped off President Trump’s motorcade last year, defeated a Republican incumbent for a seat on the Loudoun County Board of Supervisors. Read more at FOX News