By the People: The Election of Barack Obama (2009) In 2006, Barack Obama -- a largely unknown freshman senator from Illinois -- hits the campaign trail in a struggle to gain national recognition. Cameras follow Obama as he recovers from nearly losing to Sen. Hillary Clinton in the Democratic primaries and meets the challenge of his Republican rival, Sen. John McCain, in the general election. After a hard-fought campaign, Obama successfully captures the nation's imagination, becoming the first African-American president in U.S. history.