The Liberal Democrats have regained control of the Harrogate and Knaresborough seat for the first time since 2010, with Conservative candidate and former MP Andrew Jones coming in second place.
Mr Jones has been the MP for the area for the past 14 years and at the last election had a majority of 9,675.
In Thursday's general election Tom Gordon for the Liberal Democrats won 23,976 votes, with Andrew Jones polling 15,738. That gives the Lib Dems a majority of 8,238.
John Swales was in third place for Reform UK with 5,679 - followed by Conrad Whitcroft for Labour on 4,153.
Posting on X after the victory, Harrogate and Knaresborough's new MP Tom Gordon said: "The first brick in the blue wall has come crashing down in Harrogate & Knaresborough tonight.
"A huge thank you to the entire team who have worked endlessly for this result.
"We are back in Harrogate & Knaresborough, back in Yorkshire, back in the North, and back across the country."
Turnout in the constituency was 66.95%.
- Tom Gordon - Liberal Democrat 23,976
- Andrew Jones - Conservative 15,738
- John Swales - Reform UK 5,679
- Conrad Whitcroft - Labour 4,153
- Shan Oakes - Green 1,762
- Paul Haslam - Independent 620
Watch as Tom Gordon (Liberal Democrat) is announced as MP for the #Harrogate & #Knaresborough constituency with 23,976 votes.
— North Yorkshire Council (@northyorksc) July 5, 2024
See full results at https://t.co/6LcUdw6Dej#GeneralElection2024 pic.twitter.com/GS4IsIlVPE
The first brick in the blue wall has come crashing down in Harrogate & Knaresborough tonight 🔨
— Tom Gordon MP (@tomgordonLD) July 5, 2024
A huge thank you to the entire team who have worked endlessly for this result đź‘Ź
We are back in Harrogate & Knaresborough, back in Yorkshire, back in the North, and back across the… https://t.co/OUXXl5ax5v