Barack Hussein Obama II (; born August 4, 1961) is an American politician. He was the 44th President of the United States from 2009 to 2017. He was the first African-American to hold the office. Before becoming president, he was a Senator from Illinois and served from 2005 to 2008. He is a Democrat.