The Liberal Democrats have won the Brecon and Radnorshire by-election, leaving new PM Boris Johnson with a working majority in Parliament of one.
Jane Dodds overturned an 8,038 majority to beat Conservative Chris Davies by 1,425 votes.
Mr Davies stood again after being unseated by a petition following his conviction for a false expenses claim.
It was the first electoral test for Mr Johnson just eight days after becoming prime minister.
It was also the quickest by-election defeat for any new prime minister since World War Two.
Now, with the thinnest majority, he will have to rely heavily on the support of his own MPs and his confidence-and-supply partners the DUP to get any legislation passed in key votes. Read more