Barack Obama served as the 44th President of the United States from 2009 to 2017. Before his presidency, he served in the Illinois Senate (1997–2004) and the United States Senate (2005–2008). It was during his campaign for the United States Senate that he first made a speech that received nationwide attention; he gave the keynote address at the 2004 Democratic National Convention. and stated "there is not a liberal America and a conservative America—there is the United States of America". Obama began to run for president just three years after that speech. In response to a political controversy involving race during the primary campaign, he delivered his "A More Perfect Union" speech, which was widely seen as a critical point in the campaign.