The president of the United States seven years ago, in 2018, was Donald Trump. He served as the 45th president from January 2017 to January 2021.