Barack Obama served as the 44th president of the United States (2009-2017). He was the first African-American to hold that office.