The president who served immediately after Barack Obama was Donald J. Trump, who took office on January 20, 2017 and served one term until January 20, 2021.