The 19th president of the United States was Rutherford B. Hayes. He served as president from 1877 to 1881