Osama Saeed, the Scottish National Party’s great hope for capturing the Glasgow Central constituency, has failed to win the seat.
He finished second behind Labour’s Anas Sarwar, who polled 15,908 votes to secure a majority of more than 10,550.
Mr Saeed, who finished with 5,357 votes, founded the Scottish Islamic Foundation, which offered to help protect an Edinburgh synagogue which was attacked during last year’s Gaza conflict.
But members of the city’s Jewish community remained suspicious of his role as a spokesman for the Muslim Council for Britain and his calls for a global Islamic “khilafah”, or state.
Mr Saeed later reinvented himself as the moderate face of Scottish Islamism.
Mr Sarwar succeeds his father, Mohammed Sarwar, who had retired as the constituency’s MP.