Barack Obama and John McCain were the two main candidates for the 2008 U.S. presidential election. Barack Obama represented the Democratic Party and was known for his slogan "Yes, we can", while John McCain represented the Republican Party in the election for the U.S. presidency.