US Democrats have made gains in state elections, in what is being seen as a blow to President Donald Trump.
Democrat Andy Beshear claimed victory in Kentucky’s governor vote, after a tight race in the conservative-leaning state.
Meanwhile, Democrats seized full control of the legislature in Virginia for the first time in over 20 years.
The results are being viewed as a gauge of the political mood ahead of next year’s presidential election.
However, Republicans held onto power in the Mississippi governor vote, following a closely-fought race.
In Kentucky, Mr Beshear claimed victory over incumbent Republican governor Matt Bevin after final results gave him a lead of 0.4%.
Mr Bevin, 52, has reportedly said he will not concede, citing unspecified “irregularities”.
However, Mr Beshear, a 41-year-old attorney general whose father was a former governor of the state, said: “We will be ready for that first day in office and I look forward to it.”
The loss will be seen as a setback for Mr Trump, who attempted to galvanise support for Mr Bevin at a campaign rally in Kentucky on Monday night.
In a speech to thousands of supporters, Mr Trump said a loss for Mr Bevin would be characterised as “the greatest defeat in the history of the world” by his critics.
Mr Trump, who won Kentucky in the 2016 presidential election, said Mr Beshear was “too extreme and too dangerous” to govern the state.
But despite losing the governor’s race, Republican candidates claimed victory in five other votes in Kentucky, including a poll for the state’s Attorney General.
Meanwhile, in Virginia, Democrats overturned Republican majorities in both chambers of the state legislature.
The election of Danica Roem, the first openly transgender person to serve in the House, and Ghazala Hashmi, who will be the first Muslim woman in the Senate, were among the Democrat’s notable victories in the state.
Ahead of the vote, Democratic presidential hopefuls – including frontrunners Joe Biden and Elizabeth Warren – had campaigned with local candidates.
Virginia goes full blue
Anthony Zurcher, BBC’s North America correspondent
In 2017 Virginia Democrats retained the state’s governorship while coming within a hair of winning control of the state house of delegates for the first time in 18 years – a result that few had predicted was possible.
On Tuesday the party finished the job, winning both chambers of the state’s legislature and delivering the party unified control of the state government for the first time since 1993.
In other words, Virginia – which was once comfortably Republican and recently had been considered a swing state – is solidly Democratic blue.
Democrats will now be able to draw legislative district lines for the coming decade that consolidate their power, and pass new gun-control restrictions and minimum-wage laws.
Although the presidential election is more than a year away, Tuesday’s results are being seen as a reflection of Mr Trump’s popularity among voters as he faces an impeachment inquiry.
Reacting to the results on Twitter, Mr Trump hailed the performance of Republicans in Kentucky and Mississippi.
He congratulated Tate Reeves, who defeated Democrat Jim Hood to extend the Republican Party’s two-decade hold on the governor’s office in Mississippi.
On Mr Bevin’s defeat, Mr Trump’s 2020 campaign manager suggested the president’s presence at a rally in the state boosted his vote-share.
“The President just about dragged Gov. Matt Bevin across the finish line, helping him run stronger than expected in what turned into a very close race at the end,” Brad Parscale said.