Keir Mather has been elected as the new MP for the Selby and Ainsty constituency.
He took 16,456 of the votes.
The returning officer declared the result early this morning (July 21) after the electorate went to the polls yesterday (July 20).
Counters worked through the night in Selby and after five hours the result was announced.
The turnout for the by-election was 44.77 per cent from an electorate of 80,150.
The full results are:
- Andrew Philip Gray: 99 votes
- Claire Holmes, Conservative Party: 12,295 votes
- Mike Jordan, Yorkshire Party: 1,503 votes
- Dave Kent, Reform UK: 1,332 votes
- Keir Alexander Mather, Labour Party: 16,456 votes
- Nick Palmer, Independent: 342 votes
- Guy Phoenix, Heritage Party: 162 votes
- Sir Archibald Stanton, Official Monster Raving Loony Party: 172 votes
- Matthew Walker, Liberal Democrats: 1,188 votes
- Arnold Francis Ignatius Warneken, The Green Party: 1,838 votes
- John William Waterston, Social Democratic Party: 314 votes
- Luke John Wellock, Climate Party: 39 votes
- Tyler Callum Wilson-Kerr, Independent: 67 votes
Pictured is Labour's Keir Mather making his speech after the count.