Jane Dodds has won the Brecon and Radnorshire by-election for the Liberal Democrats with 43.5% of the vote, a 4.5% majority over the Tories.
The seat became vacant after Conservative Chris Davies was convicted of faking invoices to claim expenses to stop the public seeing how much he had spent on photographs for his office.
Plaid Cymru did not field a candidate to avoid splitting the Remain vote and that decision appears to have been decisive. In 2017, the Welsh nationalist party won 1,299 votes - more than the margin of victory between the Lib Dems and Tories tonight of 1,425 votes.
Ms Dodds has become the Liberal Democrats' only MP in Wales.
She was given the chance to win the seat after nearly 20% of voters in the constituency signed a recall petition to ensure that Tory MP Chris Davies would face a by-election in the wake of his conviction for forging expense claims to stop voters seeing how much he had spent on photographs for his office.

He was the first Welsh MP to lose his seat because of the rule.
The Tory defeat leaves Boris Johnson's new Conservative government with a working majority of just one MP.


The vote tallies:
- Chris Davies (Conservative): 12,401 (39%)
Tom Davies (Labour): 1,680 (5.3%)
Jane Dodds (Liberal Democrat): 13,826 (43.5%)
Des Parkinson (Brexit Party): 3,331 (10.5%)
Liz Phillips (Ukip): 242 (0.8%)
Lily the Pink (Monster Raving Loony Party): 334 (1%)
Turnout: 59.72%

How the count looked:
How the vote totals compared to 2017:
Conservatives: 20,081 (48.6% vote share)
Lib Dem: 12,043 (29.1% vote share)
Labour: 7,335 (17.7% vote share)
Plaid Cymru: 1,299 votes (3.1% vote share)
Ukip: 576 votes (1.4% vote share)