Barack Obama, President of the United States from 2009 to 2017, served as a U.S. senator from Illinois from 2005 to 2008 and as an Illinois state senator from 1997 to 2004. A member of the Democratic Party, he made his presidential run in 2008. He was elected President in 2008 and re-elected in 2012.