John Quincy Adams was an American statesman who served as the sixth President of the United States from 1825 to 1829.