Robbie Moore has been elected as the MP for Keighley, beating Labour's John Grogan by 2,218 votes.
The Conservative Party overturned a 239 vote majority to take the formerly Labour-held seat.
Tom Franks of the Liberal Democrats came third and the Brexit Party's Waqas Khan came fourth.
Voter turnout was down by 0.1 percentage points since the last general election.
Nearly 53,000 people, roughly three-quarters of those eligible to vote, went to polling stations across the area on Thursday, in the first December general election since 1923.
Four of the six candidates, Tom Franks (Liberal Democrat), Waqas Khan (The Brexit Party), Mark Barton (The Yorkshire Party) and Matthew Rose (Social Democratic Party) lost their £500 deposits after failing to win 5% of the vote.
This story was created using some automation.