2008 United States presidential election

The 2008 United States presidential election happened on November 4, 2008. Barack Obama, the Democratic candidate and junior U.S. Senator from Illinois, won the election. He defeated John McCain, the Republican candidate, who was the senior U.S. Senator from Arizona. Obama's victory in this election made him the first African-American president.
Incumbent Republican President George W. Bush was not eligible to serve a third term by law. McCain secured the Republican nomination by March 2008, defeating former governors Mitt Romney, Mike Huckabee, and other challengers. Obama secured the Democratic nomination in June 2008, after facing strong competition against former First Lady and Senator from New York Hillary Clinton. Clinton's victory in the New Hampshire primary made her the first woman to win a major party's presidential primary.
Obama won a decisive victory over McCain. He won states that had not voted for the Democratic presidential candidate since 1964 (Indiana and Virginia) and 1976 (North Carolina). Obama won nine states that had voted Republican in 2004: Colorado, Florida, Indiana, Iowa, Nevada, New Mexico, North Carolina, Ohio, and Virginia, as well as Nebraska's 2nd congressional district. He received the largest share of the popular vote won by a Democrat since Lyndon B. Johnson in 1964 and was the first Democrat to win an outright majority of the popular vote since Jimmy Carter in 1976. Obama won 69.5 million votes, the most ever won by a presidential candidate; this total would be surpassed in 2020 by both Joe Biden and Donald Trump.
Background.
 of the United States Constitution provides that for a person to be elected and serve as President of the United States, the individual must be a natural-born citizen of the United States, at least 35 years old, and a resident of the United States for a period of no less than 14 years.
Candidates for the presidency typically seek the nomination of one of the various political parties of the United States, in which case each party devises a method (such as a primary election) to choose the candidate the party deems best suited to run for the position. The party's delegates then officially nominate a candidate to run on the party's behalf.
President George W. Bush was unable to seek re-election for a third term because of the Twenty-second Amendment to the United States Constitution, which states that a president may only serve up to two terms. His term as president ended at noon eastern standard time on January 20, 2009.
Democratic Primaries.
The candidates running for the nomination of the Democratic Party were Barack Obama, Hillary Clinton, John Edwards, Joe Biden, Dennis Kucinich, Mike Gravel, Chris Dodd, and Bill Richardson.
The main contest during the Democratic primaries was between Barack Obama and Hillary Clinton, which was a very close race. Clinton won the popular vote, but ultimately Obama won more unpledged delegates and therefore the nomination.
All candidates except Mike Gravel, who switched to the Libertarian Party during the election, supported Barack Obama.
Barack Obama chose Joe Biden as the vice-presidential candidate on August 23, 2008.
Republican Primaries.
The candidates running for the nomination of the Republican Party were John McCain, Mitt Romney, Mike Huckabee, Ron Paul, Rudy Giuliani, Fred Thompson, Tom Tancredo, Alan Keyes, Jim Gilmore, Sam Brownback, and Duncan Hunter.
Republican President George W. Bush was unable to run for re-election since a president is only able to be elected twice. Vice president Dick Cheney chose not to run.
Most of the candidates withdrew early. As a result, John McCain, Mike Huckabee, and Mitt Romney emerged as the three people most likely to win the nomination. Ron Paul became popular among libertarians.
John McCain was nominated by the Republican Party (by a decisive victory).
He chose Sarah Palin as the vice-presidential candidate.
The Campaign.
The biggest issue during the campaign was the bad economy. Other issues included health care, the Iraq War, the war on terrorism, and energy independence.
The president during the election, George W. Bush (who eventually supported John McCain), was very unpopular due to the 2007-09 Great Recession, and because of that, the Obama campaign compared McCain to Bush several times.
There were four television debates during the campaign: three of them were between the two presidential candidates, and one of them was between the two vice-presidential candidates.