Malcolm Birks has thanked supporters, after he increased Labour's share of the vote in Skipton and Ripon but missed out on becoming the area's MP.
In a general election result that saw a landslide victory for Labour, the Conservative Party held onto Skipton & Ripon, with Julian Smith re-elected.
But his majority was cut from 23,694 in 2019 to just 1,650 this time out.
Sir Julian - who received a knighthood in Rishi Sunak's dissolution honours - received 18,833 votes, narrowly beating Mr Birks who received 17,183 votes for Labour.
Malcolm Birks said: "I would like to thank everyone who supported me in the recent election. Unfortunately, we came up just short, but have achieved a very large swing to Labour and have turned a once Tory-stronghold into a marginal seat. Our 13% increase in the vote share was way in excess of the national picture (2%). This represents a seismic shift in local politics.
"I feel privileged to have met hundreds of local people during the election campaign and to have heard their stories. From extraordinary entrepreneurs creating jobs and opportunities, to fantastic childcare workers, battling against the odds. From dedicated local campaign groups working to unveil the truth, to heroic healthcare support workers. From expert farmers producing wonderful food, to environmentalists leading the way in nature recovery. So many inspiring people powering our area forwards.
"I have also seen places of great deprivation and whole communities feeling disillusioned and cut-off. The actions of the last Conservative government have had a profound, negative effect on whole sections of our society, with devastating consequences.
"I am confident that the new Labour government will quickly bring about the changes needed to improve the lives of working people and unify our communities. This will be vital if we are to avoid further descent into the dark depths of populism and prejudice.
"I really hope that our local MP, mayor and councillors can work together constructively for the benefit of our area. Our constituency can feel peripheral to those in the centres of power and we must not allow the very real issues here to be forgotten, or to receive only the crumbs of investment. Therefore, I feel we must both celebrate more loudly the best of what takes place here and also bring attention to the very real problems that lie beneath the surface.
"Thank you to the many people who took the time to speak to me these past few weeks. You have inspired me and, with a Labour government now in place, I feel we can face the future with optimism."

Dementia Forward encourages residents to take on Skipton Three Peaks
South Craven celebrates as Year 11 students receive GCSE results
Julian Smith MP raises concern over rise in unemployment-related claims across Skipton
Settle Beer Festival raises over £14,000 for two local causes
Illegal vapes hidden in confectionery boxes at Skipton shop, court told
Skipton Santa Sleigh appeal launched as Rotary steps back
EasyJet announces it will stop flying from Leeds Bradford Airport
Skipton MP calls for fewer restrictions on young people taking summer jobs
Local bus drivers recognised among Transdev's safest
MP raises concerns over Silsden housing development construction works
Silsden Beer Festival will not return to Town Hall next year
Addingham and Ilkley go head to head for charity cricket match
Speed cameras 'likely' to be installed between Keighley and Silsden
Skipton solicitors shortlisted for five Yorkshire Legal Awards
Skipton businesses warned over counterfeit £20 notes
Ambulance called after woman suffers fall at Bolton Abbey
£56,000 raised for Sue Ryder Manorlands Hospice at Coniston Challenge Day
Skipton BID encourage residents to nominate their favourite local businesses
Cowling couple take on 106-mile running challenge
Skipton-Colne rail reopening could give young people a major boost


