John McCain lost to Barack Obama in 2008.
John McCain . He secured the nomination in 2008 after coming back from early reversals , but was defeated by Democratic candidate Barack Obama in the general election , losing by a 365 -- 173 electoral college margin and by 53 -- 46 % in the popular vote .