The Liberal Democrats won the Stray, Woodlands and Hookstone by-election last night (Thursday).
The party's candidate, Andrew Timothy, won with 1,094 votes, making up 43.8% of the vote.
Conservative candidate John Ennis received 768 votes.
The by-election was initially called after the resignation of councillor Pat Marsh, who was criticised following a string of anti-semitic tweets.
Cllr Andrew Timothy said:
"I’m thrilled to be elected to represent the people of Stray, Woodlands, and Hookstone. It is a huge honour and a privilege.
"I promised during the election that I would be a local residents voice at North Yorkshire Council and stand up for them on their behalf, that is exactly what I intend to do.”
The result means the Liberal Democrats have retained their control of North Yorkshire Council's Harrogate and Knaresborough constituency committee.
Tom Gordon, Liberal Democrat Parliamentary Candidate for Harrogate & Knaresborough, said:
“Once again this proves elections here in Harrogate & Knaresborough are a two horse race between the Liberal Democrats & the Conservatives.
"We will take the new members, new deliverers, new activists, new councillor and momentum forward into the general election to win back the parliamentary seat from the Conservatives.”

Second winner claims full tank as part of Free Fuel Friday
Multi-million pound Kex Gill scheme enters final stages
Leeds Bradford Airport most at risk of closure due to fuel prices, according to study
Harrogate nursery receives glowing Ofsted report
Harrogate firm donates £87,000 to National Children's Air Ambulance
Sold out: Tickets snapped up for Harrogate Town's relegation decider
North Yorkshire Council deputy leader to step down
Talented Harrogate teen earns British fencing pathway spot
New Indian restaurant celebrates successful launch in Harrogate
Harrogate youngsters complete mini marathon and raise £2,000 for blood cancer
WATCH: High-speed pursuit through Harrogate as police recover stolen vehicle
Suspect appears in court after pushing elderly woman to the ground in Knaresborough
New Maltkiln plans prompt infrastructure concerns
Extinction Rebellion's Red Rebels spotted in Knaresborough
Martin House hits £2 million retail milestone after surging online sales
Harrogate primary school's colour run fundraiser set to return
Royal recognition for Ripon community hero
Ripon prepares for city's 'biggest ever display' celebrating history and heritage
FIFTY TWO at Rudding Park launches new lunch service
Motor rollers to be showcased at Tractor Fest


