The last president of the United States was Barack Obama, who served from 2009 to 2017. He was the first African American to serve as President, and he enacted the Affordable Care Act, normalized diplomatic relations between the United States and Cuba, and passed the Paris Climate Agreement while in office.