Martyn Day is back at Westminster for a second term after winning the Linlithgow and East Falkirk seat.
The Linlithgow-based former West Lothian councillor polled 20,388 votes, down from the 32,055 he collected two years ago when he was first elected as the SNP member for the constituency.
Joan Coombes (Scottish Labour Party) was second on 17,469, down more than 2,000 votes from two years ago.
Scottish Conservative and Unionist candidate, Charles Kennedy, was third with 16,311. The Tories polled 7,384 at the 2105 election.
Sally Pattle (Scottish Liberal Democrats) owner of the bookshop on Linlithgow High Street was fourth with 1,926 votes, up from 1,252 in 2015.